staging: lustre: Fix brace {} are not necessary for single statement blocks
authorMasanari Iida <standby24x7@gmail.com>
Mon, 23 Dec 2013 04:10:33 +0000 (13:10 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 23:50:34 +0000 (15:50 -0800)
This patch fixed "WARNING: braces {} are not necessary for
single statement blocks" in lustre/lustre/mgc_request.c

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mgc/mgc_request.c

index 55a7e0cfe719dae40d6fd8797b03fe04236dc959..ede657ee9d9e5fcb0199e448db2a7cbbc064a56b 100644 (file)
@@ -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)) {