summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-06-06 10:41:17 +0200
committerDavid S. Miller <davem@davemloft.net>2015-06-07 00:16:15 -0700
commitc5726d26b8147030c394964aabfb5d36140c08ef (patch)
treee737cdce85cded15f868e1ba3b2301067fed7044 /drivers/net/wan
parent90c337da1524863838658078ec34241f45d8394d (diff)
downloadlinux-stable-c5726d26b8147030c394964aabfb5d36140c08ef.tar.gz
linux-stable-c5726d26b8147030c394964aabfb5d36140c08ef.tar.bz2
linux-stable-c5726d26b8147030c394964aabfb5d36140c08ef.zip
wan: dscc4: fix build warning Wunused-but-set-variable
Fix: drivers/net/wan/dscc4.c: In function 'dscc4_open': drivers/net/wan/dscc4.c:1049:25: warning: variable 'ppriv' set but not used [-Wunused-but-set-variable] This has been in there unused since 1da177e4c3f (Linux-2.6.12-rc2) simply remove it. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/dscc4.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c
index 08223569cebd..f76845de7aa8 100644
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -1046,7 +1046,6 @@ static void dscc4_pci_reset(struct pci_dev *pdev, void __iomem *ioaddr)
static int dscc4_open(struct net_device *dev)
{
struct dscc4_dev_priv *dpriv = dscc4_priv(dev);
- struct dscc4_pci_priv *ppriv;
int ret = -EAGAIN;
if ((dscc4_loopback_check(dpriv) < 0))
@@ -1055,8 +1054,6 @@ static int dscc4_open(struct net_device *dev)
if ((ret = hdlc_open(dev)))
goto err;
- ppriv = dpriv->pci_priv;
-
/*
* Due to various bugs, there is no way to reliably reset a
* specific port (manufacturer's dependent special PCI #RST wiring