mirror of https://gitee.com/openkylin/linux.git
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:
parent
6afc12fa6e
commit
de6c063fa0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue