diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-07 23:27:59 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-17 04:28:43 +0300 |
commit | 409d337e6bd61498696f8ea22f4da48c0b7a245d (patch) | |
tree | f02da8465b2fc6cb79b5d847eccfefb13a842f8d | |
parent | 58bf201dfc032eadbb31eaf817b467bed17f753d (diff) | |
download | linux-409d337e6bd61498696f8ea22f4da48c0b7a245d.tar.xz |
scsi: firewire: sbp2: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.
Link: https://lore.kernel.org/r/20211007202923.2174984-5-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/firewire/sbp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c index 4d5054211550..aeed3f2273e8 100644 --- a/drivers/firewire/sbp2.c +++ b/drivers/firewire/sbp2.c @@ -1375,7 +1375,7 @@ static void complete_command_orb(struct sbp2_orb *base_orb, sbp2_unmap_scatterlist(device->card->device, orb); orb->cmd->result = result; - orb->cmd->scsi_done(orb->cmd); + scsi_done(orb->cmd); } static int sbp2_map_scatterlist(struct sbp2_command_orb *orb, |