scsi: fcoe: simplify the return expression of fcoe_sysfs_setup
Subsystems (2)
PATCH 1/1 scsi: fcoe: simplify the return expression of fcoe_sysfs_setup
Simplify the return expression.
Signed-off-by Qinglang Miao <[email protected]>
--- drivers/scsi/fcoe/fcoe_sysfs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/scsi/fcoe/fcoe_sysfs.c +1 -7
@@ -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)
Signature · 1 line
2.23.0
Martin K. Petersen
AppliedQinglang,
Quoted 1 line
Simplify the return expression.
Applied to 5.10/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 1 line · Qinglang Miao
Simplify the return expression.
Applied to 5.10/scsi-queue, thanks!
[1/1] scsi: fcoe: Simplify the return expression of fcoe_sysfs_setup()
https://git.kernel.org/mkp/scsi/c/de6c063fa09a
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering