mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 16:17:41 -04:00
scsi: advansys: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-19-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:
committed by
Martin K. Petersen
parent
396dd2c0b7
commit
f3bc9338e0
@@ -3592,7 +3592,7 @@ static void asc_scsi_done(struct scsi_cmnd *scp)
|
||||
{
|
||||
scsi_dma_unmap(scp);
|
||||
ASC_STATS(scp->device->host, done);
|
||||
scp->scsi_done(scp);
|
||||
scsi_done(scp);
|
||||
}
|
||||
|
||||
static void AscSetBank(PortAddr iop_base, uchar bank)
|
||||
@@ -8460,7 +8460,6 @@ advansys_queuecommand_lck(struct scsi_cmnd *scp, void (*done)(struct scsi_cmnd *
|
||||
int asc_res, result = 0;
|
||||
|
||||
ASC_STATS(shost, queuecommand);
|
||||
scp->scsi_done = done;
|
||||
|
||||
asc_res = asc_execute_scsi_cmnd(scp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user