scsi: qlogicpti: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-69-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
da65bc05cf
commit
c33a2dca98
@ -1021,8 +1021,6 @@ static int qlogicpti_queuecommand_lck(struct scsi_cmnd *Cmnd, void (*done)(struc
|
|||||||
u_int out_ptr;
|
u_int out_ptr;
|
||||||
int in_ptr;
|
int in_ptr;
|
||||||
|
|
||||||
Cmnd->scsi_done = done;
|
|
||||||
|
|
||||||
in_ptr = qpti->req_in_ptr;
|
in_ptr = qpti->req_in_ptr;
|
||||||
cmd = (struct Command_Entry *) &qpti->req_cpu[in_ptr];
|
cmd = (struct Command_Entry *) &qpti->req_cpu[in_ptr];
|
||||||
out_ptr = sbus_readw(qpti->qregs + MBOX4);
|
out_ptr = sbus_readw(qpti->qregs + MBOX4);
|
||||||
@ -1214,7 +1212,7 @@ static irqreturn_t qpti_intr(int irq, void *dev_id)
|
|||||||
struct scsi_cmnd *next;
|
struct scsi_cmnd *next;
|
||||||
|
|
||||||
next = (struct scsi_cmnd *) dq->host_scribble;
|
next = (struct scsi_cmnd *) dq->host_scribble;
|
||||||
dq->scsi_done(dq);
|
scsi_done(dq);
|
||||||
dq = next;
|
dq = next;
|
||||||
} while (dq != NULL);
|
} while (dq != NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user