Skip to content

Commit 8697934

Browse files
Arun Easimartinkpetersen
authored andcommitted
scsi: fnic: Propagate SCSI error code from fnic_scsi_drv_init()
Propagate scsi_add_host() error instead of returning -1. Suggested-by: Dan Carpenter <[email protected]> Reviewed-by: Sesidhar Baddela <[email protected]> Reviewed-by: Arulprabhu Ponnusamy <[email protected]> Reviewed-by: Gian Carlo Boffa <[email protected]> Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Karan Tilak Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 5442867 commit 8697934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/fnic/fnic_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static int fnic_scsi_drv_init(struct fnic *fnic)
637637
err = scsi_add_host(fnic->host, &pdev->dev);
638638
if (err) {
639639
dev_err(&fnic->pdev->dev, "fnic: scsi add host failed: aborting\n");
640-
return -1;
640+
return err;
641641
}
642642
fc_host_maxframe_size(fnic->host) = iport->max_payload_size;
643643
fc_host_dev_loss_tmo(fnic->host) =

0 commit comments

Comments
 (0)