From: Masanari Iida Date: Mon, 23 Dec 2013 04:10:33 +0000 (+0900) Subject: staging: lustre: Fix brace {} are not necessary for single statement blocks X-Git-Tag: v3.14-rc1~13^2~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3126b4d12132a5d70df0c7fd4d047ea92d492987;p=kernel%2Fkernel-generic.git staging: lustre: Fix brace {} are not necessary for single statement blocks This patch fixed "WARNING: braces {} are not necessary for single statement blocks" in lustre/lustre/mgc_request.c Signed-off-by: Masanari Iida Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c b/drivers/staging/lustre/lustre/mgc/mgc_request.c index 55a7e0c..ede657e 100644 --- a/drivers/staging/lustre/lustre/mgc/mgc_request.c +++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c @@ -1090,18 +1090,18 @@ int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, return -EINVAL; rc = mgc_fs_setup(exp->exp_obd, sb); - if (rc) { + if (rc) CERROR("set_fs got %d\n", rc); - } + return rc; } if (KEY_IS(KEY_CLEAR_FS)) { if (vallen != 0) return -EINVAL; rc = mgc_fs_cleanup(exp->exp_obd); - if (rc) { + if (rc) CERROR("clear_fs got %d\n", rc); - } + return rc; } if (KEY_IS(KEY_SET_INFO)) {