diff options
| author | Yang Yingliang <[email protected]> | 2021-09-09 09:06:08 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-09-09 20:24:02 +0000 |
| commit | 221e8360834c59f0c9952630fa5904a94ebd2bb8 (patch) | |
| tree | 87eba00454997fe9e21557a1b89857c94c9dd51c /scripts/clang-tools/gen_compile_commands.py | |
| parent | blk-mq: allow 4x BLK_MAX_REQUEST_COUNT at blk_plug for multiple_queues (diff) | |
| download | kernel-221e8360834c59f0c9952630fa5904a94ebd2bb8.tar.gz kernel-221e8360834c59f0c9952630fa5904a94ebd2bb8.zip | |
n64cart: fix return value check in n64cart_probe()
In case of error, the function devm_platform_ioremap_resource()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().
Fixes: d9b2a2bbbb4d ("block: Add n64 cart driver")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
