aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sym53c8xx_2/sym_glue.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-10-07 13:29:09 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-16 21:31:42 -0400
commit37425f5d07ccc5088b01d5cceb6d3d2309461acd (patch)
tree4af66dd7fbdab00b2ad2ef54c961eb67f5296d1f /drivers/scsi/sym53c8xx_2/sym_glue.c
parentscsi: storvsc_drv: Call scsi_done() directly (diff)
downloadlinux-dev-37425f5d07ccc5088b01d5cceb6d3d2309461acd.tar.xz
linux-dev-37425f5d07ccc5088b01d5cceb6d3d2309461acd.zip
scsi: sym53c8xx_2: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-75-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 '')
-rw-r--r--drivers/scsi/sym53c8xx_2/sym_glue.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c
index 6d0b07b9cb31..76747e180b17 100644
--- a/drivers/scsi/sym53c8xx_2/sym_glue.c
+++ b/drivers/scsi/sym53c8xx_2/sym_glue.c
@@ -133,7 +133,7 @@ void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *cmd)
complete(ucmd->eh_done);
scsi_dma_unmap(cmd);
- cmd->scsi_done(cmd);
+ scsi_done(cmd);
}
/*
@@ -493,7 +493,6 @@ static int sym53c8xx_queue_command_lck(struct scsi_cmnd *cmd,
struct sym_ucmd *ucp = SYM_UCMD_PTR(cmd);
int sts = 0;
- cmd->scsi_done = done;
memset(ucp, 0, sizeof(*ucp));
/*