scsi: hisi_sas: Don't check .nr_hw_queues in hisi_sas_task_prep()
authorJohn Garry <john.garry@huawei.com>
Tue, 26 Jan 2021 11:04:25 +0000 (19:04 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Jan 2021 04:02:11 +0000 (23:02 -0500)
commit69bfa5fd7b448b2cd0cce6a301cf3fba8133ca0f
tree436a1e6d853cbf1169d1128ed0c1b2b687f9a81e
parent4d287d8bae1f395b5e5d79bc9673dacab7975e36
scsi: hisi_sas: Don't check .nr_hw_queues in hisi_sas_task_prep()

Now that v2 and v3 hw expose their HW queues (and so shost.nr_hw_queues is
set), remove the conditional checks in hisi_sas_task_prep().

This change would affect v1 HW performance (as it does not expose HW
queues), but nobody uses it and support may be dropped soon.

Link: https://lore.kernel.org/r/1611659068-131975-3-git-send-email-john.garry@huawei.com
Reviewed-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>
drivers/scsi/hisi_sas/hisi_sas_main.c