Commit d3805695 authored by Anuradha Weeraman's avatar Anuradha Weeraman Committed by David S. Miller

net: ethernet: marvell: octeontx2: Fix uninitialized variable warning

Fix for uninitialized variable warning.

Addresses-Coverity: ("Uninitialized scalar variable")
Signed-off-by: default avatarAnuradha Weeraman <anuradha@debian.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent df49908f
...@@ -589,7 +589,7 @@ int rvu_mbox_handler_mcs_free_resources(struct rvu *rvu, ...@@ -589,7 +589,7 @@ int rvu_mbox_handler_mcs_free_resources(struct rvu *rvu,
u16 pcifunc = req->hdr.pcifunc; u16 pcifunc = req->hdr.pcifunc;
struct mcs_rsrc_map *map; struct mcs_rsrc_map *map;
struct mcs *mcs; struct mcs *mcs;
int rc; int rc = 0;
if (req->mcs_id >= rvu->mcs_blk_cnt) if (req->mcs_id >= rvu->mcs_blk_cnt)
return MCS_AF_ERR_INVALID_MCSID; return MCS_AF_ERR_INVALID_MCSID;
......
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