From c0907c68331d6aab51b86e44a3c7ba3122208c78 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Sun, 1 Jan 2017 13:45:06 -0500 Subject: [PATCH] LU-8587 utils: Fix incorrect indenting in llapi_hsm_log_ct_progress gcc6 highlights this case of incorrect indenting: if (progress_type == CT_RUNNING) rc = llapi_json_add_item(&json_items, "current_bytes", LLAPI_JSON_BIGNUM, ¤t); if (rc < 0) goto err; Just add the braces around, though logic-wise it's all fine. Change-Id: I770857fe2f9ce29817558247ce0987842b8d06b4 Signed-off-by: Alex Zhuravlev Signed-off-by: Oleg Drokin Reviewed-on: https://review.whamcloud.com/24570 Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Dmitry Eremin --- lustre/utils/liblustreapi_hsm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/utils/liblustreapi_hsm.c b/lustre/utils/liblustreapi_hsm.c index 6880ac5..345ab1b 100644 --- a/lustre/utils/liblustreapi_hsm.c +++ b/lustre/utils/liblustreapi_hsm.c @@ -429,11 +429,12 @@ static int llapi_hsm_log_ct_progress(struct hsm_copyaction_private **phcp, goto err; } - if (progress_type == CT_RUNNING) + if (progress_type == CT_RUNNING) { rc = llapi_json_add_item(&json_items, "current_bytes", LLAPI_JSON_BIGNUM, ¤t); if (rc < 0) goto err; + } cancel: rc = llapi_json_add_item(&json_items, "event_type", LLAPI_JSON_STRING, -- 1.8.3.1