diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-07 22:28:53 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-17 03:31:39 +0200 |
commit | 48760367a401c4b801f07c4c8326ebf0001fbba6 (patch) | |
tree | af045f79deaef659167520ae620e9ba191ad822d /drivers/scsi/nsp32.c | |
parent | scsi: ncr53c8xx: Call scsi_done() directly (diff) | |
download | linux-48760367a401c4b801f07c4c8326ebf0001fbba6.tar.xz linux-48760367a401c4b801f07c4c8326ebf0001fbba6.zip |
scsi: nsp32: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.
Link: https://lore.kernel.org/r/20211007202923.2174984-59-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/nsp32.c')
-rw-r--r-- | drivers/scsi/nsp32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c index bc9d29e5fdba..1057b6fd7569 100644 --- a/drivers/scsi/nsp32.c +++ b/drivers/scsi/nsp32.c @@ -945,7 +945,6 @@ static int nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt, show_command(SCpnt); - SCpnt->scsi_done = done; data->CurrentSC = SCpnt; SCpnt->SCp.Status = SAM_STAT_CHECK_CONDITION; scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); @@ -1546,7 +1545,7 @@ static void nsp32_scsi_done(struct scsi_cmnd *SCpnt) /* * call scsi_done */ - (*SCpnt->scsi_done)(SCpnt); + scsi_done(SCpnt); /* * reset parameters |