net: marvell: prestera: Fix return value check in prestera_fib_node_find()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 23 Feb 2022 08:49:53 +0000 (16:49 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Feb 2022 05:21:20 +0000 (21:21 -0800)
commitd434ee9dee6dc75984897f183df773427a68a1ff
treea292a632db64252c99d9a7db4aed468b7c54fcf5
parent06388a03d2a792b017d67457012c4f289bf45e13
net: marvell: prestera: Fix return value check in prestera_fib_node_find()

rhashtable_lookup_fast() returns NULL pointer not ERR_PTR(), so
it can return fib_node directly in prestera_fib_node_find().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220223084954.1771075-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/prestera/prestera_router_hw.c