Skip to content

Commit

Permalink
net: socionext: remove redundant pointer ndev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Jul 5, 2018
1 parent dfbd074 commit e0515b0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/socionext/netsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e0515b0

Please sign in to comment.