summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/sh_cmt.c
diff options
context:
space:
mode:
authorXiang Chen <chenxiang66@hisilicon.com>2018-11-09 15:06:35 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-11-15 20:37:05 +0100
commit745b6847634c11dda1079d0290781a443eddb4b7 (patch)
tree8f4af7c00328116c1851b3fd74061d6a06a02182 /drivers/clocksource/sh_cmt.c
parentscsi: hisi_sas: Add support for interrupt coalescing for v3 hw (diff)
downloadlinux-745b6847634c11dda1079d0290781a443eddb4b7.tar.xz
linux-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/clocksource/sh_cmt.c')
0 files changed, 0 insertions, 0 deletions