scsi: ufs: Fix error return code in ufshcd_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 28 Sep 2016 14:49:42 +0000 (14:49 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 30 Sep 2016 01:37:03 +0000 (21:37 -0400)
commit73811c942954a1d2470656d1bd9e990e327ac580
tree9735a2ffe6797c3f747048092e9117c02c3d6bee
parent6861285ce8f8a9a55aab4775847de6e48b2dc7f2
scsi: ufs: Fix error return code in ufshcd_init()

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Kiwoong Kim <kwmad.kim@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c