diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-07 22:27:58 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-17 03:28:43 +0200 |
commit | 58bf201dfc032eadbb31eaf817b467bed17f753d (patch) | |
tree | 5df5b71d68950ef975e4aab4478065a882153299 /drivers/ata/libata-sata.c | |
parent | scsi: core: Rename scsi_mq_done() into scsi_done() and export it (diff) | |
download | linux-58bf201dfc032eadbb31eaf817b467bed17f753d.tar.xz linux-58bf201dfc032eadbb31eaf817b467bed17f753d.zip |
scsi: ata: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.
Link: https://lore.kernel.org/r/20211007202923.2174984-4-bvanassche@acm.org
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ata/libata-sata.c')
-rw-r--r-- | drivers/ata/libata-sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-sata.c b/drivers/ata/libata-sata.c index 8f3ff830ab0c..60418d872c12 100644 --- a/drivers/ata/libata-sata.c +++ b/drivers/ata/libata-sata.c @@ -1258,7 +1258,7 @@ int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap) rc = __ata_scsi_queuecmd(cmd, ap->link.device); else { cmd->result = (DID_BAD_TARGET << 16); - cmd->scsi_done(cmd); + scsi_done(cmd); } return rc; } |