mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
scsi: libsas: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-46-bvanassche@acm.org Reviewed-by: John Garry <john.garry@huawei.com> 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
b4b84edc5d
commit
e803bc52b0
@ -125,7 +125,7 @@ static void sas_scsi_task_done(struct sas_task *task)
|
||||
}
|
||||
|
||||
sas_end_task(sc, task);
|
||||
sc->scsi_done(sc);
|
||||
scsi_done(sc);
|
||||
}
|
||||
|
||||
static struct sas_task *sas_create_task(struct scsi_cmnd *cmd,
|
||||
@ -198,7 +198,7 @@ out_free_task:
|
||||
else
|
||||
cmd->result = DID_ERROR << 16;
|
||||
out_done:
|
||||
cmd->scsi_done(cmd);
|
||||
scsi_done(cmd);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sas_queuecommand);
|
||||
|
Loading…
Reference in New Issue
Block a user