linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup
@ 2020-09-21 13:11 Qinglang Miao
  2020-10-08  2:38 ` Martin K. Petersen
  2020-10-13 22:42 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Qinglang Miao @ 2020-09-21 13:11 UTC (permalink / raw)
  To: Hannes Reinecke, James E.J. Bottomley, Martin K. Petersen
  Cc: linux-scsi, linux-kernel, Qinglang Miao

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(-)

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)
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup
  2020-09-21 13:11 [PATCH -next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup Qinglang Miao
@ 2020-10-08  2:38 ` Martin K. Petersen
  2020-10-13 22:42 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-10-08  2:38 UTC (permalink / raw)
  To: Qinglang Miao
  Cc: Hannes Reinecke, James E.J. Bottomley, Martin K. Petersen,
	linux-scsi, linux-kernel


Qinglang,

> Simplify the return expression.

Applied to 5.10/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup
  2020-09-21 13:11 [PATCH -next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup Qinglang Miao
  2020-10-08  2:38 ` Martin K. Petersen
@ 2020-10-13 22:42 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-10-13 22:42 UTC (permalink / raw)
  To: Hannes Reinecke, Qinglang Miao, James E.J. Bottomley
  Cc: Martin K . Petersen, linux-kernel, linux-scsi

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

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-13 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 13:11 [PATCH -next] scsi: fcoe: simplify the return expression of fcoe_sysfs_setup Qinglang Miao
2020-10-08  2:38 ` Martin K. Petersen
2020-10-13 22:42 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).