Skip to content

Commit 3503e67

Browse files
Colin Ian Kingdavem330
authored andcommitted
octeontx2-af: Remove redundant initialization of variable blkaddr
The variable blkaddr is being initialized with a value that is never read, it is being updated later on in a for-loop. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d853f1d commit 3503e67

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ int rvu_get_blkaddr_from_slot(struct rvu *rvu, int blktype, u16 pcifunc,
12941294
int numlfs, total_lfs = 0, nr_blocks = 0;
12951295
int i, num_blkaddr[BLK_COUNT] = { 0 };
12961296
struct rvu_block *block;
1297-
int blkaddr = -ENODEV;
1297+
int blkaddr;
12981298
u16 start_slot;
12991299

13001300
if (!is_blktype_attached(pfvf, blktype))

0 commit comments

Comments
 (0)