diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-06-18 15:38:37 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-06-24 06:14:55 +0200 |
commit | b2bc2200e89bf6be01da8a9972fee800891725c0 (patch) | |
tree | 6cf33343210d792cbaf750f29ae3119ba9e42941 /block/blk-mq-sched.h | |
parent | scsi: ufs: Allow exynos ufs driver to build as module (diff) | |
download | linux-b2bc2200e89bf6be01da8a9972fee800891725c0.tar.xz linux-b2bc2200e89bf6be01da8a9972fee800891725c0.zip |
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>
Diffstat (limited to 'block/blk-mq-sched.h')
0 files changed, 0 insertions, 0 deletions