aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptfc.c')
-rw-r--r--drivers/message/fusion/mptfc.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c
index fd75108c355e..02a3eefd6931 100644
--- a/drivers/message/fusion/mptfc.c
+++ b/drivers/message/fusion/mptfc.c
@@ -649,7 +649,7 @@ mptfc_slave_alloc(struct scsi_device *sdev)
649} 649}
650 650
651static int 651static int
652mptfc_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) 652mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt)
653{ 653{
654 struct mptfc_rport_info *ri; 654 struct mptfc_rport_info *ri;
655 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); 655 struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device));
@@ -658,14 +658,14 @@ mptfc_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))
658 658
659 if (!vdevice || !vdevice->vtarget) { 659 if (!vdevice || !vdevice->vtarget) {
660 SCpnt->result = DID_NO_CONNECT << 16; 660 SCpnt->result = DID_NO_CONNECT << 16;
661 done(SCpnt); 661 SCpnt->scsi_done(SCpnt);
662 return 0; 662 return 0;
663 } 663 }
664 664
665 err = fc_remote_port_chkready(rport); 665 err = fc_remote_port_chkready(rport);
666 if (unlikely(err)) { 666 if (unlikely(err)) {
667 SCpnt->result = err; 667 SCpnt->result = err;
668 done(SCpnt); 668 SCpnt->scsi_done(SCpnt);
669 return 0; 669 return 0;
670 } 670 }
671 671
@@ -673,15 +673,13 @@ mptfc_qcmd_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))
673 ri = *((struct mptfc_rport_info **)rport->dd_data); 673 ri = *((struct mptfc_rport_info **)rport->dd_data);
674 if (unlikely(!ri)) { 674 if (unlikely(!ri)) {
675 SCpnt->result = DID_IMM_RETRY << 16; 675 SCpnt->result = DID_IMM_RETRY << 16;
676 done(SCpnt); 676 SCpnt->scsi_done(SCpnt);
677 return 0; 677 return 0;
678 } 678 }
679 679
680 return mptscsih_qcmd(SCpnt,done); 680 return mptscsih_qcmd(SCpnt);
681} 681}
682 682
683static DEF_SCSI_QCMD(mptfc_qcmd)
684
685/* 683/*
686 * mptfc_display_port_link_speed - displaying link speed 684 * mptfc_display_port_link_speed - displaying link speed
687 * @ioc: Pointer to MPT_ADAPTER structure 685 * @ioc: Pointer to MPT_ADAPTER structure