Searched hist:"2 d8aaa1720c6128ce263a2afcd3f8ee2e5551af8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/input/joystick/ |
H A D | n64joy.c | diff 2d8aaa1720c6128ce263a2afcd3f8ee2e5551af8 Mon Mar 08 13:40:30 CST 2021 Wei Yongjun <weiyongjun1@huawei.com> Input: n64joy - fix return value check in n64joy_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: 3bdffa8ffb45 ("Input: Add N64 controller driver") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Lauri Kasanen <cand@gmx.com> Link: https://lore.kernel.org/r/20210308122856.2177071-1-weiyongjun1@huawei.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
|