summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2017-08-28 10:14:26 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-29 04:15:46 +0200
commitfbf252335f8e2bd39d4ce59b1db0836a40ab227b (patch)
treecfdbfe5f872e25810da2ba95ba3fa98d0a52112b /drivers
parentscsi: lpfc: avoid false-positive gcc-8 warning (diff)
downloadlinux-fbf252335f8e2bd39d4ce59b1db0836a40ab227b.tar.xz
linux-fbf252335f8e2bd39d4ce59b1db0836a40ab227b.zip
scsi: qlogicpti: fixup qlogicpti_reset() definition
A merge error crept in when formatting commit af167bc ("scsi: qlogicpti: move bus reset to host reset") Fixes: af167bc ("scsi: qlogicpti: move bus reset to host reset") Signed-off-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qlogicpti.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c
index 274ee1ccfea8..cec9a14982e6 100644
--- a/drivers/scsi/qlogicpti.c
+++ b/drivers/scsi/qlogicpti.c
@@ -1250,9 +1250,10 @@ static int qlogicpti_abort(struct scsi_cmnd *Cmnd)
return return_status;
}
-static int qlogicpti_reset(struct Scsi_Host *host)
+static int qlogicpti_reset(struct scsi_cmnd *Cmnd)
{
u_short param[6];
+ struct Scsi_Host *host = Cmnd->device->host;
struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata;
int return_status = SUCCESS;