Skip to content

Commit d380569

Browse files
aweeramandavem330
authored andcommitted
net: ethernet: marvell: octeontx2: Fix uninitialized variable warning
Fix for uninitialized variable warning. Addresses-Coverity: ("Uninitialized scalar variable") Signed-off-by: Anuradha Weeraman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent df49908 commit d380569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ int rvu_mbox_handler_mcs_free_resources(struct rvu *rvu,
589589
u16 pcifunc = req->hdr.pcifunc;
590590
struct mcs_rsrc_map *map;
591591
struct mcs *mcs;
592-
int rc;
592+
int rc = 0;
593593

594594
if (req->mcs_id >= rvu->mcs_blk_cnt)
595595
return MCS_AF_ERR_INVALID_MCSID;

0 commit comments

Comments
 (0)