summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.c
diff options
context:
space:
mode:
authorJeff Garzik2010-11-18 04:56:48 +0100
committerJeff Garzik2011-01-06 01:43:22 +0100
commitb27dcfb0670ea7352a67137f4ff7947c2a9f6892 (patch)
treecd48976174179304780651fa4e75bd5d1ffd1522 /drivers/scsi/ipr.c
parent[libata] new driver acard_ahci, for ATP8620 host controller (diff)
downloadkernel-qcow2-linux-b27dcfb0670ea7352a67137f4ff7947c2a9f6892.tar.gz
kernel-qcow2-linux-b27dcfb0670ea7352a67137f4ff7947c2a9f6892.tar.xz
kernel-qcow2-linux-b27dcfb0670ea7352a67137f4ff7947c2a9f6892.zip
[libata] avoid needlessly passing around ptr to SCSI completion func
It's stored in struct scsi_cmnd->scsi_done, making several 'done' parameters to functions redundant. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r--drivers/scsi/ipr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 5bbaee597e88..2c71927aad64 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -5743,7 +5743,7 @@ static int ipr_queuecommand_lck(struct scsi_cmnd *scsi_cmd,
}
if (ipr_is_gata(res) && res->sata_port)
- return ata_sas_queuecmd(scsi_cmd, done, res->sata_port->ap);
+ return ata_sas_queuecmd(scsi_cmd, res->sata_port->ap);
ipr_cmd = ipr_get_free_ipr_cmnd(ioa_cfg);
ioarcb = &ipr_cmd->ioarcb;