diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-03-01 16:42:40 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-04 18:17:27 -0500 |
commit | 129fbeecbccdeaa4f89aaea5d1698aae44ae4b4b (patch) | |
tree | 781feb74e380f2f98e35916d4be5fb90658a0825 /drivers/net/ethernet/amd/amd8111e.c | |
parent | 93a00d4d613fb6363c618c941b0283c2df6bd64e (diff) | |
download | linux-129fbeecbccdeaa4f89aaea5d1698aae44ae4b4b.tar.gz linux-129fbeecbccdeaa4f89aaea5d1698aae44ae4b4b.tar.bz2 linux-129fbeecbccdeaa4f89aaea5d1698aae44ae4b4b.zip |
net: amd8111e: remove redundant assignment to 'tx_index'
The variable tx_index is being initialized with a value that is never
read and re-assigned a little later, hence the initialization is redundant
and can be removed.
Cleans up clang warning:
drivers/net/ethernet/amd/amd8111e.c:652:6: warning: Value stored to
'tx_index' during its initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/amd8111e.c')
-rw-r--r-- | drivers/net/ethernet/amd/amd8111e.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c index 358f7ab77c70..c99e3e845ac0 100644 --- a/drivers/net/ethernet/amd/amd8111e.c +++ b/drivers/net/ethernet/amd/amd8111e.c @@ -649,7 +649,7 @@ static void amd8111e_free_ring(struct amd8111e_priv *lp) static int amd8111e_tx(struct net_device *dev) { struct amd8111e_priv *lp = netdev_priv(dev); - int tx_index = lp->tx_complete_idx & TX_RING_DR_MOD_MASK; + int tx_index; int status; /* Complete all the transmit packet */ while (lp->tx_complete_idx != lp->tx_idx){ |