scsi: hisi_sas: relocate some codes to avoid 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. which is in front of function hisi_sas_task_prep(). So to solve it, relocate the check to function hisi_sas_task_prep() to avoid unused check. Signed-off-by: NXiang Chen <chenxiang66@hisilicon.com> Signed-off-by: NJohn Garry <john.garry@huawei.com>
Showing
想要评论请 注册 或 登录