staging: lustre: Remove braces for single statement in kernel_user_comm.c
authorMasanari Iida <standby24x7@gmail.com>
Tue, 24 Dec 2013 16:34:05 +0000 (01:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 23:52:43 +0000 (15:52 -0800)
This patch fixed "WARNING: braces {} are not necessary for
single statement blocks" found by checkpatch.pl in
kernel_user_comm.c

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

index 1a423a24dcaad77cb3a720f5839ac26f8b4b719a..7b2c31599327b94c2d47cbcc67202c6306cb4573 100644 (file)
@@ -330,9 +330,8 @@ int libcfs_kkuc_group_foreach(int group, libcfs_kkuc_cb_t cb_func,
 
        down_read(&kg_sem);
        list_for_each_entry(reg, &kkuc_groups[group], kr_chain) {
-               if (reg->kr_fp != NULL) {
+               if (reg->kr_fp != NULL)
                        rc = cb_func(reg->kr_data, cb_arg);
-               }
        }
        up_read(&kg_sem);