scsi: fdomain: Call scsi_done() directly
authorBart Van Assche <bvanassche@acm.org>
Thu, 7 Oct 2021 20:28:29 +0000 (13:28 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 17 Oct 2021 01:28:47 +0000 (21:28 -0400)
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>
drivers/scsi/fdomain.c

index eda2be534aa7b99a582b4d46960534a2639b283c..9159b4057c5df18203f69083ac253c640e1f55c8 100644 (file)
@@ -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;
 }