Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: 53c700: Call scsi_done() directly

Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.

Link: https://lore.kernel.org/r/20211007202923.2174984-12-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
656f26ad 9dd9b96c

+2 -3
+2 -3
drivers/scsi/53c700.c
··· 634 634 635 635 SCp->host_scribble = NULL; 636 636 SCp->result = result; 637 - SCp->scsi_done(SCp); 637 + scsi_done(SCp); 638 638 } else { 639 639 printk(KERN_ERR "53c700: SCSI DONE HAS NULL SCp\n"); 640 640 } ··· 1571 1571 * deadlock on the 1572 1572 * hostdata->state_lock */ 1573 1573 SCp->result = DID_RESET << 16; 1574 - SCp->scsi_done(SCp); 1574 + scsi_done(SCp); 1575 1575 } 1576 1576 mdelay(25); 1577 1577 NCR_700_chip_setup(host); ··· 1792 1792 1793 1793 slot->cmnd = SCp; 1794 1794 1795 - SCp->scsi_done = done; 1796 1795 SCp->host_scribble = (unsigned char *)slot; 1797 1796 SCp->SCp.ptr = NULL; 1798 1797 SCp->SCp.buffer = NULL;