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>
This commit is contained in:
Qinglang Miao 2020-09-21 21:11:02 +08:00 committed by Martin K. Petersen
parent 6afc12fa6e
commit de6c063fa0
1 changed files with 1 additions and 7 deletions

View File

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