Skip to content

Commit

Permalink
net: ethernet: marvell: octeontx2: Fix uninitialized variable warning
Browse files Browse the repository at this point in the history
Fix for uninitialized variable warning.

Addresses-Coverity: ("Uninitialized scalar variable")
Signed-off-by: Anuradha Weeraman <anuradha@debian.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Anuradha Weeraman authored and David S. Miller committed Dec 26, 2022
1 parent df49908 commit d380569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ int rvu_mbox_handler_mcs_free_resources(struct rvu *rvu,
u16 pcifunc = req->hdr.pcifunc;
struct mcs_rsrc_map *map;
struct mcs *mcs;
int rc;
int rc = 0;

if (req->mcs_id >= rvu->mcs_blk_cnt)
return MCS_AF_ERR_INVALID_MCSID;
Expand Down

0 comments on commit d380569

Please sign in to comment.