summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-10-07 13:28:52 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-16 21:31:39 -0400
commitf0f4f79a4f7d4d6109b9f927b6284c06b14b1b2f (patch)
treeda11b6291f051b5635b3d28cf622813ee9431215
parent1c21a4f495cfb0a0d7f6c6c6fb36df849ccd3816 (diff)
downloadlinux-stable-f0f4f79a4f7d4d6109b9f927b6284c06b14b1b2f.tar.gz
linux-stable-f0f4f79a4f7d4d6109b9f927b6284c06b14b1b2f.tar.bz2
linux-stable-f0f4f79a4f7d4d6109b9f927b6284c06b14b1b2f.zip
scsi: ncr53c8xx: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-58-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/ncr53c8xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 2b8c6fa5e775..6ad43a98409c 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -4003,7 +4003,7 @@ static inline void ncr_flush_done_cmds(struct scsi_cmnd *lcmd)
while (lcmd) {
cmd = lcmd;
lcmd = (struct scsi_cmnd *) cmd->host_scribble;
- cmd->scsi_done(cmd);
+ scsi_done(cmd);
}
}
@@ -7862,7 +7862,6 @@ static int ncr53c8xx_queue_command_lck (struct scsi_cmnd *cmd, void (*done)(stru
printk("ncr53c8xx_queue_command\n");
#endif
- cmd->scsi_done = done;
cmd->host_scribble = NULL;
cmd->__data_mapped = 0;
cmd->__data_mapping = 0;