octeontx2-af: returning uninitialized variable
authorSebin Sebastian <mailmesebin00@gmail.com>
Wed, 13 Jul 2022 07:38:58 +0000 (13:08 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 13:51:34 +0000 (14:51 +0100)
commit6a605eb1d71ea8cec50bdf7151c772c599a5fb70
tree8320289753d67fbf03ce173e4ea5b0beabd88f67
parentd86a153aca7ee754613313bdbdc8c3ae366108ea
octeontx2-af: returning uninitialized variable

Fix coverity error 'use of uninitialized variable'. err is uninitialized
and is returned which can lead to unintended results. err has been replaced
with -einval.
Coverity issue: 1518921 (uninitialized scalar variable)

Signed-off-by: Sebin Sebastian <mailmesebin00@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c