Searched hist:"221 e8360834c59f0c9952630fa5904a94ebd2bb8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/block/ |
H A D | n64cart.c | diff 221e8360834c59f0c9952630fa5904a94ebd2bb8 Thu Sep 09 04:06:08 CDT 2021 Yang Yingliang <yangyingliang@huawei.com> 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 <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20210909090608.2989716-1-yangyingliang@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|