mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-09 22:24:04 +08:00
scsi: ncr53c8xx: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call scsi_done() directly. Link: https://lore.kernel.org/r/20211007202923.2174984-58-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
1c21a4f495
commit
f0f4f79a4f
@ -4003,7 +4003,7 @@ static inline void ncr_flush_done_cmds(struct scsi_cmnd *lcmd)
|
||||
while (lcmd) {
|
||||
cmd = lcmd;
|
||||
lcmd = (struct scsi_cmnd *) cmd->host_scribble;
|
||||
cmd->scsi_done(cmd);
|
||||
scsi_done(cmd);
|
||||
}
|
||||
}
|
||||
|
||||
@ -7862,7 +7862,6 @@ static int ncr53c8xx_queue_command_lck (struct scsi_cmnd *cmd, void (*done)(stru
|
||||
printk("ncr53c8xx_queue_command\n");
|
||||
#endif
|
||||
|
||||
cmd->scsi_done = done;
|
||||
cmd->host_scribble = NULL;
|
||||
cmd->__data_mapped = 0;
|
||||
cmd->__data_mapping = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user