scsi: hisi_sas: Remove some unnecessary code
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 5 Aug 2019 13:48:10 +0000 (21:48 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 02:13:15 +0000 (22:13 -0400)
commita07b48766c5232b98154f68010512a9269f2841e
tree1e50666ae15ff0019145502d00fc24ab51b95b65
parent7bf18e849d80e1beb118fd6d3bd5ccfcb1267d09
scsi: hisi_sas: Remove some unnecessary code

Remove some unnecessary code, including:

 - Explicit zeroing of memory allocated for dmam_alloc_coherent()

 - Some duplicated code

 - Some redundant masking

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