diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-07 23:28:14 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-17 04:28:45 +0300 |
commit | 3ab3b151ff1257623002d5e9b90c67f3e61228f2 (patch) | |
tree | edd8714a57ff5e0fcc5a132b6d6e3a15a6263f96 /drivers/scsi/aha1542.c | |
parent | f3bc9338e08de19f795b184a959c583195e1d6fd (diff) | |
download | linux-3ab3b151ff1257623002d5e9b90c67f3e61228f2.tar.xz |
scsi: aha152x: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call
scsi_done() and reset_done() directly. The changes in this patch are as
follows:
- Remove the 'done' argument from aha152x_internal_queue().
- Change ptr->scsi_done(ptr) into aha152x_scsi_done(ptr).
- Inside aha152x_scsi_done(), check the 'resetting' flag of SCp.phase
since aha152x_internal_queue() specifies the 'reset_done' function
pointer if and only if the third argument has the value 'resetting'.
Link: https://lore.kernel.org/r/20211007202923.2174984-20-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aha1542.c')
0 files changed, 0 insertions, 0 deletions