diff options
author | Xiang Chen <chenxiang66@hisilicon.com> | 2018-11-09 22:06:35 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-11-15 14:37:05 -0500 |
commit | 745b6847634c11dda1079d0290781a443eddb4b7 (patch) | |
tree | 8f4af7c00328116c1851b3fd74061d6a06a02182 /drivers/scsi/libsas | |
parent | 37359798ec44ae03fab383a9bef3b7c9df819063 (diff) |
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')
0 files changed, 0 insertions, 0 deletions