From: Bart Van Assche Date: Thu, 7 Oct 2021 20:46:05 +0000 (-0700) Subject: scsi: wd719x: Call scsi_done() directly X-Git-Tag: v5.16-rc1~107^2~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f11e4da6bfc1d0a7823f89afda3f7e61f3f904c4;p=thirdparty%2Flinux.git scsi: wd719x: Call scsi_done() directly Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007204618.2196847-5-bvanassche@acm.org Signed-off-by: Bart Van Assche Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index 6f10a43510fbd..1a79475545817 100644 --- a/drivers/scsi/wd719x.c +++ b/drivers/scsi/wd719x.c @@ -200,7 +200,7 @@ static void wd719x_finish_cmd(struct wd719x_scb *scb, int result) SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); cmd->result = result << 16; - cmd->scsi_done(cmd); + scsi_done(cmd); } /* Build a SCB and send it to the card */ @@ -295,7 +295,7 @@ out_unmap_scb: DMA_BIDIRECTIONAL); out_error: cmd->result = DID_ERROR << 16; - cmd->scsi_done(cmd); + scsi_done(cmd); return 0; }