Commit cfe261c2 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

net: socionext: remove set but not used variable 'pkts'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/socionext/netsec.c: In function 'netsec_clean_tx_dring':
drivers/net/ethernet/socionext/netsec.c:637:15: warning:
 variable 'pkts' set but not used [-Wunused-but-set-variable]

It is not used since commit ba2b2321 ("net: netsec: add XDP support")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 04fc7143
...@@ -634,15 +634,14 @@ static void netsec_set_rx_de(struct netsec_priv *priv, ...@@ -634,15 +634,14 @@ static void netsec_set_rx_de(struct netsec_priv *priv,
static bool netsec_clean_tx_dring(struct netsec_priv *priv) static bool netsec_clean_tx_dring(struct netsec_priv *priv)
{ {
struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_TX]; struct netsec_desc_ring *dring = &priv->desc_ring[NETSEC_RING_TX];
unsigned int pkts, bytes;
struct netsec_de *entry; struct netsec_de *entry;
int tail = dring->tail; int tail = dring->tail;
unsigned int bytes;
int cnt = 0; int cnt = 0;
if (dring->is_xdp) if (dring->is_xdp)
spin_lock(&dring->lock); spin_lock(&dring->lock);
pkts = 0;
bytes = 0; bytes = 0;
entry = dring->vaddr + DESC_SZ * tail; entry = dring->vaddr + DESC_SZ * tail;
......
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