scsi: ufs: ufs-exynos: Fix return value check in exynos_ufs_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 18 Jun 2020 13:38:37 +0000 (13:38 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Jun 2020 04:14:55 +0000 (00:14 -0400)
commitb2bc2200e89bf6be01da8a9972fee800891725c0
tree6cf33343210d792cbaf750f29ae3119ba9e42941
parentd31503fe395d1d7e17b85eb7b291cc1a4bff2671
scsi: ufs: ufs-exynos: Fix return value check in exynos_ufs_init()

In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should be
replaced with IS_ERR().

Link: https://lore.kernel.org/r/20200618133837.127274-1-weiyongjun1@huawei.com
Fixes: 55f4b1f73631 ("scsi: ufs: ufs-exynos: Add UFS host support for Exynos SoCs")
Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-exynos.c