diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-07 13:29:05 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-16 21:31:41 -0400 |
commit | 0ca19080578456ed46b7e2abb283feb768ff7a19 (patch) | |
tree | da6b487e522cc1cf09ba480fbdee7c460760429a /drivers/scsi/smartpqi | |
parent | 6c2c7d6aa439e1ee0885d7c32d999df0124607d5 (diff) | |
download | linux-stable-0ca19080578456ed46b7e2abb283feb768ff7a19.tar.gz linux-stable-0ca19080578456ed46b7e2abb283feb768ff7a19.tar.bz2 linux-stable-0ca19080578456ed46b7e2abb283feb768ff7a19.zip |
scsi: smartpqi: Call scsi_done() directly
Conditional statements are faster than indirect calls. Hence call
scsi_done() directly.
Link: https://lore.kernel.org/r/20211007202923.2174984-71-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/smartpqi')
-rw-r--r-- | drivers/scsi/smartpqi/smartpqi_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index b966ce3b4385..54c12b149fda 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -195,7 +195,7 @@ static char *pqi_raid_level_to_string(u8 raid_level) static inline void pqi_scsi_done(struct scsi_cmnd *scmd) { pqi_prep_for_scsi_done(scmd); - scmd->scsi_done(scmd); + scsi_done(scmd); } static inline void pqi_disable_write_same(struct scsi_device *sdev) |