summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/socionext/netsec.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-05 11:26:13 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-05 12:30:26 +0200
commite0515b0cbccc69c7fb4d6edc2f25ac1faa20ac0f (patch)
treef73cefc0048d7aba526fa590c29a4a1201f33631 /drivers/net/ethernet/socionext/netsec.c
parentnet: aquantia: Make some functions static (diff)
downloadlinux-e0515b0cbccc69c7fb4d6edc2f25ac1faa20ac0f.tar.xz
linux-e0515b0cbccc69c7fb4d6edc2f25ac1faa20ac0f.zip
net: socionext: remove redundant pointer ndev
Pointer ndev is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'ndev' set but not used [-Wunused-but-set-variable] 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/socionext/netsec.c')
-rw-r--r--drivers/net/ethernet/socionext/netsec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c
index e080d3e7c582..01589b6982e4 100644
--- a/drivers/net/ethernet/socionext/netsec.c
+++ b/drivers/net/ethernet/socionext/netsec.c
@@ -780,11 +780,9 @@ static int netsec_process_rx(struct netsec_priv *priv, int budget)
static int netsec_napi_poll(struct napi_struct *napi, int budget)
{
struct netsec_priv *priv;
- struct net_device *ndev;
int tx, rx, done, todo;
priv = container_of(napi, struct netsec_priv, napi);
- ndev = priv->ndev;
todo = budget;
do {