diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-04-29 05:54:26 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-29 20:52:15 +0300 |
commit | f84b604dbaf242d17135f527dbe81093a41226b3 (patch) | |
tree | e2b05715c0d8238dec6d40a7dbeea425dd79ee35 /drivers/spi/spi-stm32-qspi.c | |
parent | 68d047cb0a20f612506c6cf3a98e3600a7d4371f (diff) | |
download | linux-f84b604dbaf242d17135f527dbe81093a41226b3.tar.xz |
spi: spi-amd: Fix a NULL vs IS_ERR() check in amd_spi_probe()
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().
Fixes: bbb336f39efc ("spi: spi-amd: Add AMD SPI controller driver support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200429025426.167664-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-stm32-qspi.c')
0 files changed, 0 insertions, 0 deletions