hisi_sas: fix error codes in hisi_sas_task_prep()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Dec 2015 10:48:36 +0000 (13:48 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Dec 2015 18:33:18 +0000 (13:33 -0500)
commit9c9d18e7a680f3eceeb891e24709eda817ef738e
treee8d5504425f0f2bfd55dab13e466184a9ee1c367
parent9a2fcad8dce219df6cac3db91f373080f017856a
hisi_sas: fix error codes in hisi_sas_task_prep()

There were a couple cases where the error codes weren't set and also I
changed the success return to "return 0;" which is the same as
"return rc;" but more explicit.

Fixes: 42e7a69368a5 ('hisi_sas: Add ssp command functio')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-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