Skip to content

Commit de6c063

Browse files
Qinglang Miaomartinkpetersen
authored andcommitted
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>
1 parent 6afc12f commit de6c063

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/scsi/fcoe/fcoe_sysfs.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,16 +1053,10 @@ EXPORT_SYMBOL_GPL(fcoe_fcf_device_add);
10531053

10541054
int __init fcoe_sysfs_setup(void)
10551055
{
1056-
int error;
1057-
10581056
atomic_set(&ctlr_num, 0);
10591057
atomic_set(&fcf_num, 0);
10601058

1061-
error = bus_register(&fcoe_bus_type);
1062-
if (error)
1063-
return error;
1064-
1065-
return 0;
1059+
return bus_register(&fcoe_bus_type);
10661060
}
10671061

10681062
void __exit fcoe_sysfs_teardown(void)

0 commit comments

Comments
 (0)