Commit e0515b0c authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dfbd0749
...@@ -780,11 +780,9 @@ static int netsec_process_rx(struct netsec_priv *priv, int budget) ...@@ -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) static int netsec_napi_poll(struct napi_struct *napi, int budget)
{ {
struct netsec_priv *priv; struct netsec_priv *priv;
struct net_device *ndev;
int tx, rx, done, todo; int tx, rx, done, todo;
priv = container_of(napi, struct netsec_priv, napi); priv = container_of(napi, struct netsec_priv, napi);
ndev = priv->ndev;
todo = budget; todo = budget;
do { do {
......
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