]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: hisi_sas: make return type of prep functions void
authorXiang Chen <chenxiang66@hisilicon.com>
Wed, 9 May 2018 15:10:46 +0000 (23:10 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 May 2018 15:22:09 +0000 (11:22 -0400)
commita2b3820bddfbffcfbf0e8170e77de65d8b8def98
tree6c36cbbece9ee0a2731c6486c5c18ee9011076fa
parent7eee4b921822addfb67c2ced5772f003bb083520
scsi: hisi_sas: make return type of prep functions void

Since the task prep functions now should not fail, adjust the return
types to void.

In addition, some checks in the task prep functions are relocated to the
main module; this is specifically the check for the number of elements
in an sg list exceeded the HW SGE limit.

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.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c