diff mbox series

[v3,15/17] scsi:bfa: Added changes to fc_remote_port_chkready

Message ID 1602732462-10443-16-git-send-email-muneendra.kumar@broadcom.com
State New
Headers show
Series [v3,01/17] scsi: Added a new definition in scsi_cmnd.h | expand

Commit Message

Muneendra Kumar Oct. 15, 2020, 3:27 a.m. UTC
Added changes to pass a new argument to fc_remote_port_chkready

Signed-off-by: Muneendra <muneendra.kumar@broadcom.com>

---
v3:
New Patch
---
 drivers/scsi/bfa/bfad_im.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/bfa/bfad_im.c b/drivers/scsi/bfa/bfad_im.c
index 22f06be2606f..550ce8cdbce2 100644
--- a/drivers/scsi/bfa/bfad_im.c
+++ b/drivers/scsi/bfa/bfad_im.c
@@ -956,7 +956,7 @@  bfad_im_slave_alloc(struct scsi_device *sdev)
 	struct bfad_itnim_data_s *itnim_data;
 	struct bfa_s *bfa;
 
-	if (!rport || fc_remote_port_chkready(rport))
+	if (!rport || fc_remote_port_chkready(rport, NULL))
 		return -ENXIO;
 
 	itnim_data = (struct bfad_itnim_data_s *) rport->dd_data;
@@ -1213,7 +1213,7 @@  bfad_im_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd
 	int       sg_cnt = 0;
 	struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device));
 
-	rc = fc_remote_port_chkready(rport);
+	rc = fc_remote_port_chkready(rport, cmnd);
 	if (rc) {
 		cmnd->result = rc;
 		done(cmnd);