diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-07 22:28:01 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-17 03:28:43 +0200 |
commit | 1ae6d167793c3b293114335f474adfc0ef5438ed (patch) | |
tree | d73380da4f9dea74dd739d98d8602ad012b1da55 /drivers/message/fusion/mptsas.c | |
parent | scsi: ib_srp: Call scsi_done() directly (diff) | |
download | linux-1ae6d167793c3b293114335f474adfc0ef5438ed.tar.xz linux-1ae6d167793c3b293114335f474adfc0ef5438ed.zip |
scsi: message: fusion: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.
Link: https://lore.kernel.org/r/20211007202923.2174984-7-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/message/fusion/mptsas.c')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 85285ba8e817..38a7cb0a3ecc 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1929,7 +1929,7 @@ mptsas_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) { SCpnt->result = DID_NO_CONNECT << 16; - SCpnt->scsi_done(SCpnt); + scsi_done(SCpnt); return 0; } |