From: Oleg Drokin Date: Sun, 1 Jan 2017 18:45:06 +0000 (-0500) Subject: LU-8587 utils: Fix incorrect indenting in llapi_hsm_log_ct_progress X-Git-Tag: 2.9.52~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c0907c68331d6aab51b86e44a3c7ba3122208c78;p=fs%2Flustre-release.git 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 --- 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,