mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
scsi: qla4xxx: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-67-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
79e30b884a
commit
fdcfbd6517
1 changed files with 2 additions and 2 deletions
|
@ -4080,7 +4080,7 @@ void qla4xxx_srb_compl(struct kref *ref)
|
|||
|
||||
mempool_free(srb, ha->srb_mempool);
|
||||
|
||||
cmd->scsi_done(cmd);
|
||||
scsi_done(cmd);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4154,7 +4154,7 @@ static int qla4xxx_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
|
|||
return SCSI_MLQUEUE_HOST_BUSY;
|
||||
|
||||
qc_fail_command:
|
||||
cmd->scsi_done(cmd);
|
||||
scsi_done(cmd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue