Commit 0ca19080 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

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.orgSigned-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 6c2c7d6a
...@@ -195,7 +195,7 @@ static char *pqi_raid_level_to_string(u8 raid_level) ...@@ -195,7 +195,7 @@ static char *pqi_raid_level_to_string(u8 raid_level)
static inline void pqi_scsi_done(struct scsi_cmnd *scmd) static inline void pqi_scsi_done(struct scsi_cmnd *scmd)
{ {
pqi_prep_for_scsi_done(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) static inline void pqi_disable_write_same(struct scsi_device *sdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment