From 3126b4d12132a5d70df0c7fd4d047ea92d492987 Mon Sep 17 00:00:00 2001 From: Masanari Iida Date: Mon, 23 Dec 2013 13:10:33 +0900 Subject: [PATCH] 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 --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c b/drivers/staging/lustre/lustre/mgc/mgc_request.c index 55a7e0cfe719..ede657ee9d9e 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)) { -- 2.11.0