Staging:lustre:obdclass:linux:remove unnecessary braces
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 20 Jan 2016 18:47:44 +0000 (00:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 22:44:02 +0000 (14:44 -0800)
Fixed 'braces {} are not necessary for single statement blocks'
checkpatch.pl warning.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c

index f8d3a639e85c3d013700a75ac8415564844d007b..b0ee4db1e82bbf6ff2a50016bec440009c056d71 100644 (file)
@@ -144,9 +144,8 @@ int obd_ioctl_getdata(char **buf, int *len, void __user *arg)
                offset += cfs_size_round(data->ioc_inllen3);
        }
 
-       if (data->ioc_inllen4) {
+       if (data->ioc_inllen4)
                data->ioc_inlbuf4 = &data->ioc_bulk[0] + offset;
-       }
 
        return 0;
 
@@ -250,9 +249,8 @@ static ssize_t health_show(struct kobject *kobj, struct attribute *attr,
                class_incref(obd, __func__, current);
                read_unlock(&obd_dev_lock);
 
-               if (obd_health_check(NULL, obd)) {
+               if (obd_health_check(NULL, obd))
                        healthy = false;
-               }
                class_decref(obd, __func__, current);
                read_lock(&obd_dev_lock);
        }