diff mbox series

[-next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup

Message ID 20200921131102.93084-1-miaoqinglang@huawei.com
State Accepted
Headers show
Series [-next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup | expand

Commit Message

Qinglang Miao Sept. 21, 2020, 1:11 p.m. UTC
Simplify the return expression.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
 drivers/scsi/fcoe/fcoe_sysfs.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

Comments

Martin K. Petersen Oct. 8, 2020, 2:38 a.m. UTC | #1
Qinglang,

> Simplify the return expression.

Applied to 5.10/scsi-staging, thanks!
Martin K. Petersen Oct. 13, 2020, 10:42 p.m. UTC | #2
On Mon, 21 Sep 2020 21:11:02 +0800, Qinglang Miao wrote:

> 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
diff mbox series

Patch

diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c
index 2cb7a8c93..ffef2c8ed 100644
--- 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)