diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-06-18 13:38:37 +0000 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-06-24 00:14:55 -0400 |
| commit | b2bc2200e89bf6be01da8a9972fee800891725c0 (patch) | |
| tree | 6cf33343210d792cbaf750f29ae3119ba9e42941 /tools/perf/scripts | |
| parent | d31503fe395d1d7e17b85eb7b291cc1a4bff2671 (diff) | |
| download | linux-b2bc2200e89bf6be01da8a9972fee800891725c0.tar.gz 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 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
