[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250110091956.17749-1-kartilak@cisco.com>
Date: Fri, 10 Jan 2025 01:19:56 -0800
From: Karan Tilak Kumar <kartilak@...co.com>
To: sebaddel@...co.com
Cc: arulponn@...co.com,
djhawar@...co.com,
gcboffa@...co.com,
mkai2@...co.com,
satishkh@...co.com,
aeasi@...co.com,
jejb@...ux.ibm.com,
martin.petersen@...cle.com,
linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org,
Dan Carpenter <dan.carpenter@...aro.org>,
Karan Tilak Kumar <kartilak@...co.com>
Subject: [PATCH] scsi: fnic: Propagate scsi error code from fnic_scsi_drv_init
From: Arun Easi <aeasi@...co.com>
Propagate scsi_add_host() error instead of returning -1.
Suggested-by: Dan Carpenter <dan.carpenter@...aro.org>
Reviewed-by: Sesidhar Baddela <sebaddel@...co.com>
Reviewed-by: Arulprabhu Ponnusamy <arulponn@...co.com>
Reviewed-by: Gian Carlo Boffa <gcboffa@...co.com>
Signed-off-by: Arun Easi <aeasi@...co.com>
Signed-off-by: Karan Tilak Kumar <kartilak@...co.com>
---
drivers/scsi/fnic/fnic_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c
index 6880b40507aa..2fc5e9688147 100644
--- a/drivers/scsi/fnic/fnic_main.c
+++ b/drivers/scsi/fnic/fnic_main.c
@@ -637,7 +637,7 @@ static int fnic_scsi_drv_init(struct fnic *fnic)
err = scsi_add_host(fnic->host, &pdev->dev);
if (err) {
dev_err(&fnic->pdev->dev, "fnic: scsi add host failed: aborting\n");
- return -1;
+ return err;
}
fc_host_maxframe_size(fnic->host) = iport->max_payload_size;
fc_host_dev_loss_tmo(fnic->host) =
--
2.47.1
Powered by blists - more mailing lists