Skip to content

Commit

Permalink
net: wan: dlci: Remove set but not used variable 'err'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lee Jones authored and David S. Miller committed Aug 15, 2020
1 parent fd29aee commit 1a2c266
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wan/dlci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1a2c266

Please sign in to comment.