diff options
| author | 2018-11-09 22:06:35 +0800 | |
|---|---|---|
| committer | 2018-11-15 14:37:05 -0500 | |
| commit | 745b6847634c11dda1079d0290781a443eddb4b7 (patch) | |
| tree | 8f4af7c00328116c1851b3fd74061d6a06a02182 /drivers/scsi/libsas/sas_task.c | |
| parent | scsi: hisi_sas: Add support for interrupt coalescing for v3 hw (diff) | |
| download | linux-dev-745b6847634c11dda1079d0290781a443eddb4b7.tar.xz linux-dev-745b6847634c11dda1079d0290781a443eddb4b7.zip | |
scsi: hisi_sas: Relocate some codes to avoid an unused check
In function hisi_sas_task_prep(), we check asd_sas_port, but in function
hisi_sas_task_exec(), we already refer to asd_sas_port by using function
dev_to_hisi_hba() implicitly. So to avoid this possible invalid
dereference, relocate the check to function hisi_sas_task_prep().
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libsas/sas_task.c')
0 files changed, 0 insertions, 0 deletions
