diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-18 04:56:48 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2011-01-06 01:43:22 +0100 |
commit | b27dcfb0670ea7352a67137f4ff7947c2a9f6892 (patch) | |
tree | cd48976174179304780651fa4e75bd5d1ffd1522 /drivers/scsi/libsas | |
parent | [libata] new driver acard_ahci, for ATP8620 host controller (diff) | |
download | linux-b27dcfb0670ea7352a67137f4ff7947c2a9f6892.tar.xz 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/libsas')
-rw-r--r-- | drivers/scsi/libsas/sas_scsi_host.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 29251fabecc6..5815cbeb27a6 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c @@ -211,8 +211,7 @@ static int sas_queuecommand_lck(struct scsi_cmnd *cmd, unsigned long flags; spin_lock_irqsave(dev->sata_dev.ap->lock, flags); - res = ata_sas_queuecmd(cmd, scsi_done, - dev->sata_dev.ap); + res = ata_sas_queuecmd(cmd, dev->sata_dev.ap); spin_unlock_irqrestore(dev->sata_dev.ap->lock, flags); goto out; } |