diff options
author | Lee Jones <lee.jones@linaro.org> | 2020-08-14 13:39:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-15 05:42:25 +0200 |
commit | 1a2c26681f88c924e15d3bfe0a9fb7a162336777 (patch) | |
tree | 8a5ddbe0a306f718cf44a4f08e9e272418c2bff8 /drivers/net/wan/dlci.c | |
parent | net: ethernet: 8390: axnet_cs: Document unused parameter 'txqueue' (diff) | |
download | linux-1a2c26681f88c924e15d3bfe0a9fb7a162336777.tar.xz linux-1a2c26681f88c924e15d3bfe0a9fb7a162336777.zip |
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: Lee Jones <lee.jones@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/dlci.c')
-rw-r--r-- | drivers/net/wan/dlci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wan/dlci.c b/drivers/net/wan/dlci.c index 7bcee41905cf..3ca4daf63389 100644 --- a/drivers/net/wan/dlci.c +++ b/drivers/net/wan/dlci.c @@ -295,14 +295,13 @@ static int dlci_close(struct net_device *dev) { struct dlci_local *dlp; struct frad_local *flp; - int err; netif_stop_queue(dev); dlp = netdev_priv(dev); flp = netdev_priv(dlp->slave); - err = (*flp->deactivate)(dlp->slave, dev); + (*flp->deactivate)(dlp->slave, dev); return 0; } |