scsi: fcoe: Simplify the return expression of fcoe_sysfs_setup()
authorQinglang Miao <miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:11:02 +0000 (21:11 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Oct 2020 03:50:04 +0000 (23:50 -0400)
Simplify the return expression.

Link: https://lore.kernel.org/r/20200921131102.93084-1-miaoqinglang@huawei.com
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe_sysfs.c

index 2cb7a8c..ffef2c8 100644 (file)
@@ -1053,16 +1053,10 @@ EXPORT_SYMBOL_GPL(fcoe_fcf_device_add);
 
 int __init fcoe_sysfs_setup(void)
 {
-       int error;
-
        atomic_set(&ctlr_num, 0);
        atomic_set(&fcf_num, 0);
 
-       error = bus_register(&fcoe_bus_type);
-       if (error)
-               return error;
-
-       return 0;
+       return bus_register(&fcoe_bus_type);
 }
 
 void __exit fcoe_sysfs_teardown(void)