summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fdomain.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-10-07 22:28:29 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-17 03:28:47 +0200
commita0c22474cbc64ba7099595151f97b33bdfdc5ff3 (patch)
treed41ed24307d6cfe5d9f458d41a201e683a09420c /drivers/scsi/fdomain.c
parentscsi: fas216: Stop using scsi_cmnd.scsi_done (diff)
downloadlinux-a0c22474cbc64ba7099595151f97b33bdfdc5ff3.tar.xz
linux-a0c22474cbc64ba7099595151f97b33bdfdc5ff3.zip
scsi: fdomain: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-35-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fdomain.c')
-rw-r--r--drivers/scsi/fdomain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c
index eda2be534aa7..9159b4057c5d 100644
--- a/drivers/scsi/fdomain.c
+++ b/drivers/scsi/fdomain.c
@@ -206,7 +206,7 @@ static void fdomain_finish_cmd(struct fdomain *fd)
{
outb(0, fd->base + REG_ICTL);
fdomain_make_bus_idle(fd);
- fd->cur_cmd->scsi_done(fd->cur_cmd);
+ scsi_done(fd->cur_cmd);
fd->cur_cmd = NULL;
}