scsi: hisi_sas: Relocate some code to reduce complexity
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 6 Dec 2018 13:34:41 +0000 (21:34 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 13 Dec 2018 02:23:16 +0000 (21:23 -0500)
commit6e1b731b535231e199c7810451c851398afccd33
tree696d9bbefbd8da4a09635868681514ba92c819d2
parent735bcc77e6ba83e464665cea9041072190ede37e
scsi: hisi_sas: Relocate some code to reduce complexity

Relocate the codes related to dma_map/unmap in hisi_sas_task_prep() to
reduce complexity, with a view to add DIF/DIX support.

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>
drivers/scsi/hisi_sas/hisi_sas_main.c