Commit 1a2c2668 authored by Lee Jones's avatar Lee Jones Committed by David S. Miller

net: wan: dlci: Remove set but not used variable 'err'

Fixes the following W=1 kernel build warning(s):

 drivers/net/wan/dlci.c: In function ‘dlci_close’:
 drivers/net/wan/dlci.c:298:8: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Mike McLagan <mike.mclagan@linux.org>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fd29aeee
...@@ -295,14 +295,13 @@ static int dlci_close(struct net_device *dev) ...@@ -295,14 +295,13 @@ static int dlci_close(struct net_device *dev)
{ {
struct dlci_local *dlp; struct dlci_local *dlp;
struct frad_local *flp; struct frad_local *flp;
int err;
netif_stop_queue(dev); netif_stop_queue(dev);
dlp = netdev_priv(dev); dlp = netdev_priv(dev);
flp = netdev_priv(dlp->slave); flp = netdev_priv(dlp->slave);
err = (*flp->deactivate)(dlp->slave, dev); (*flp->deactivate)(dlp->slave, dev);
return 0; return 0;
} }
......
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