Code cleanup

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-01-02 15:52:05 +00:00
parent 067ddd4aa0
commit 5fca6bcab1

View File

@@ -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"