octeontx2-af: Remove redundant initialization of variable blkaddr
Subsystems (4)
PATCH 1/1 octeontx2-af: Remove redundant initialization of variable blkaddr
From: Colin Ian King <[email protected]>
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")
--- drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c +1 -1
@@ -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 i, num_blkaddr[BLK_COUNT ] = {0 };struct rvu_block *block; -int blkaddr = -ENODEV ; +int blkaddr;u16 start_slot;if (!is_blktype_attached (pfvf, blktype))
Signature · 1 line
2.32.0
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 10 lines · On Fri, 17 Sep 2021 13:03:33 +0100 you wrote:
From: Colin Ian King <[email protected]>
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]>[...]
Here is the summary with links:
- [next] octeontx2-af: Remove redundant initialization of variable blkaddr
https://git.kernel.org/netdev/net-next/c/3503e673db23
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html