Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bart Van Assche and committed by
Martin K. Petersen
a0c22474 696fec18

+1 -1
+1 -1
drivers/scsi/fdomain.c
··· 206 206 { 207 207 outb(0, fd->base + REG_ICTL); 208 208 fdomain_make_bus_idle(fd); 209 - fd->cur_cmd->scsi_done(fd->cur_cmd); 209 + scsi_done(fd->cur_cmd); 210 210 fd->cur_cmd = NULL; 211 211 } 212 212