提交 da65bc05 编写于 作者: B Bart Van Assche 提交者: Martin K. Petersen

scsi: qlogicfas408: Call scsi_done() directly

Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.

Link: https://lore.kernel.org/r/20211007202923.2174984-68-bvanassche@acm.orgSigned-off-by: NBart Van Assche <bvanassche@acm.org>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 fdcfbd65
...@@ -442,7 +442,7 @@ static void ql_ihandl(void *dev_id) ...@@ -442,7 +442,7 @@ static void ql_ihandl(void *dev_id)
* If result is CHECK CONDITION done calls qcommand to request * If result is CHECK CONDITION done calls qcommand to request
* sense * sense
*/ */
(icmd->scsi_done) (icmd); scsi_done(icmd);
} }
irqreturn_t qlogicfas408_ihandl(int irq, void *dev_id) irqreturn_t qlogicfas408_ihandl(int irq, void *dev_id)
...@@ -473,7 +473,6 @@ static int qlogicfas408_queuecommand_lck(struct scsi_cmnd *cmd, ...@@ -473,7 +473,6 @@ static int qlogicfas408_queuecommand_lck(struct scsi_cmnd *cmd,
return 0; return 0;
} }
cmd->scsi_done = done;
/* wait for the last command's interrupt to finish */ /* wait for the last command's interrupt to finish */
while (priv->qlcmd != NULL) { while (priv->qlcmd != NULL) {
barrier(); barrier();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册