net: socionext: remove set but not used variable 'pkts'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 4 Jul 2019 03:37:45 +0000 (03:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:26:47 +0000 (15:26 -0700)
commitcfe261c24e553d322ef3fc5ae96667767d80142a
treeb3842c1651f0894f0b17442369a4a37b5583f6b5
parent04fc71435fdebff3f4fcde09a208316af502f5c6
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 ba2b232108d3 ("net: netsec: add XDP support")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c