mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
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>
This commit is contained in:
parent
6c2c7d6aa4
commit
0ca1908057
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user