diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-21 21:11:02 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-10-07 23:50:04 -0400 |
commit | de6c063fa09a671cce7bea996cfe2a9288f794a8 (patch) | |
tree | e845929dd8aad3ed1a2e540485d39b8efb02a85b /drivers/scsi | |
parent | 6afc12fa6e503670939f75e4bd3f1777401ffb99 (diff) |
scsi: fcoe: Simplify the return expression of fcoe_sysfs_setup()
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/fcoe/fcoe_sysfs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c index 2cb7a8c93a15..ffef2c8eddc6 100644 --- a/drivers/scsi/fcoe/fcoe_sysfs.c +++ b/drivers/scsi/fcoe/fcoe_sysfs.c @@ -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) |