projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6afc12f
)
scsi: fcoe: Simplify the return expression of fcoe_sysfs_setup()
author
Qinglang Miao
<miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:11:02 +0000
(21:11 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 8 Oct 2020 03:50:04 +0000
(23:50 -0400)
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>
drivers/scsi/fcoe/fcoe_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/fcoe/fcoe_sysfs.c
b/drivers/scsi/fcoe/fcoe_sysfs.c
index 2cb7a8c93a15d24f2f10d706bd2c7d5f2c02ee4f..ffef2c8eddc6407cdb0c5761f26c3f1255719783 100644
(file)
--- 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)