Commit a63d220f authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

lan743x: remove redundant initialization of variable current_head_index



[ Upstream commit bb809a04 ]

The variable current_head_index is being initialized with a value that
is never read and it is being updated later with a new value.  Replace
the initialization of -1 with the latter assignment.

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>
Stable-dep-of: 2d52e2e3 ("net: lan743x: Fix memleak issue when GSO enabled")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 38c10733
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment