Commit 3503e673 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d853f1d3
...@@ -1294,7 +1294,7 @@ int rvu_get_blkaddr_from_slot(struct rvu *rvu, int blktype, u16 pcifunc, ...@@ -1294,7 +1294,7 @@ int rvu_get_blkaddr_from_slot(struct rvu *rvu, int blktype, u16 pcifunc,
int numlfs, total_lfs = 0, nr_blocks = 0; int numlfs, total_lfs = 0, nr_blocks = 0;
int i, num_blkaddr[BLK_COUNT] = { 0 }; int i, num_blkaddr[BLK_COUNT] = { 0 };
struct rvu_block *block; struct rvu_block *block;
int blkaddr = -ENODEV; int blkaddr;
u16 start_slot; u16 start_slot;
if (!is_blktype_attached(pfvf, blktype)) if (!is_blktype_attached(pfvf, blktype))
......
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