diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-03-12 14:31:54 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2020-03-12 18:09:58 +0300 |
| commit | 1a421ebab6bb5bf65001743ba9fef48e94fb345a (patch) | |
| tree | c3481daf1b88da5db21a399128dc6184b825631a /scripts/gcc-plugins/gcc-common.h | |
| parent | b562b304efc0922d1ef9e7d5b9d333db7497f81a (diff) | |
| download | linux-1a421ebab6bb5bf65001743ba9fef48e94fb345a.tar.xz | |
spi: spi-nxp-fspi: Fix a NULL vs IS_ERR() check in probe
The platform_get_resource_byname() function returns NULL on error, it
doesn't return error pointers.
Fixes: d166a73503ef ("spi: fspi: dynamically alloc AHB memory")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200312113154.GC20562@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
