]> git.baikalelectronics.ru Git - kernel.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)
commit92e027bba53116655c95bff26b1524d3b15f1408
tree6c36cbbece9ee0a2731c6486c5c18ee9011076fa
parent34762727289c7eacb3f9038b02bf2df3ba660e07
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