From 5fca6bcab1b00fa6c0f1ebea29799ed7cd1aa0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Wed, 2 Jan 2019 15:52:05 +0000 Subject: [PATCH] Code cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/path.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/path.c b/src/path.c index 9075a9c..c9820c4 100644 --- a/src/path.c +++ b/src/path.c @@ -50,10 +50,7 @@ gt_path_status(int fd) default: return -2; } - const char *statusstr = "DEGRADED"; - - if (res.path_status.ok) - statusstr = "OK"; + const char *statusstr = res.path_status.ok ? "OK" : "DEGRADED"; printf(term ? "path %s\n" " status: %s\n"