]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Call scsi_done directly
authorBart Van Assche <bvanassche@acm.org>
Thu, 7 Oct 2021 20:46:11 +0000 (13:46 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 17 Oct 2021 01:31:43 +0000 (21:31 -0400)
commit4d7e6b2aa85a6ac8bc9fb934456b74f6ecef4b11
tree68983e3b0ee7514f52a56250d7b6a594151452ec
parent41174658253d0c15f6825e0d810f769c0011dfc5
scsi: core: Call scsi_done directly

Conditional statements are faster than indirect calls. Hence call
scsi_done() directly. Since this patch removes the last user of the
scsi_done member, also remove that data structure member.

Link: https://lore.kernel.org/r/20211007204618.2196847-11-bvanassche@acm.org
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hosts.c
drivers/scsi/scsi_lib.c
include/scsi/scsi_cmnd.h
include/scsi/scsi_host.h