Commit 6a605eb1 authored by Sebin Sebastian's avatar Sebin Sebastian Committed by David S. Miller

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: default avatarSebin Sebastian <mailmesebin00@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d86a153a
...@@ -1959,7 +1959,7 @@ int rvu_npc_exact_init(struct rvu *rvu) ...@@ -1959,7 +1959,7 @@ int rvu_npc_exact_init(struct rvu *rvu)
dev_err(rvu->dev, dev_err(rvu->dev,
"%s: failed to set drop info for cgx=%d, lmac=%d, chan=%llx\n", "%s: failed to set drop info for cgx=%d, lmac=%d, chan=%llx\n",
__func__, cgx_id, lmac_id, chan_val); __func__, cgx_id, lmac_id, chan_val);
return err; return -EINVAL;
} }
err = npc_install_mcam_drop_rule(rvu, *drop_mcam_idx, err = npc_install_mcam_drop_rule(rvu, *drop_mcam_idx,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment