scsi: nsp32: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-59-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
f0f4f79a4f
commit
48760367a4
@@ -945,7 +945,6 @@ static int nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt,
|
|||||||
|
|
||||||
show_command(SCpnt);
|
show_command(SCpnt);
|
||||||
|
|
||||||
SCpnt->scsi_done = done;
|
|
||||||
data->CurrentSC = SCpnt;
|
data->CurrentSC = SCpnt;
|
||||||
SCpnt->SCp.Status = SAM_STAT_CHECK_CONDITION;
|
SCpnt->SCp.Status = SAM_STAT_CHECK_CONDITION;
|
||||||
scsi_set_resid(SCpnt, scsi_bufflen(SCpnt));
|
scsi_set_resid(SCpnt, scsi_bufflen(SCpnt));
|
||||||
@@ -1546,7 +1545,7 @@ static void nsp32_scsi_done(struct scsi_cmnd *SCpnt)
|
|||||||
/*
|
/*
|
||||||
* call scsi_done
|
* call scsi_done
|
||||||
*/
|
*/
|
||||||
(*SCpnt->scsi_done)(SCpnt);
|
scsi_done(SCpnt);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* reset parameters
|
* reset parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user