summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/faraday/ftgmac100.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-04-05 12:28:44 +1000
committerDavid S. Miller <davem@davemloft.net>2017-04-06 12:38:04 -0700
commit8396e1cb0b9f7505b0cd56e26df35279cb3bc1cb (patch)
tree3b36dab0247e6d2ee8e42fceae072e83571e4434 /drivers/net/ethernet/faraday/ftgmac100.c
parent831fb3388c1ecf192fcd9772c2de1697e9af5dda (diff)
downloadlinux-8396e1cb0b9f7505b0cd56e26df35279cb3bc1cb.tar.bz2
ftgmac100: Remove "enabled" flags
It's not used in any meaningful way Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday/ftgmac100.c')
-rw-r--r--drivers/net/ethernet/faraday/ftgmac100.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c
index 89148246a739..283edb1a7f7a 100644
--- a/drivers/net/ethernet/faraday/ftgmac100.c
+++ b/drivers/net/ethernet/faraday/ftgmac100.c
@@ -84,7 +84,6 @@ struct ftgmac100 {
/* Misc */
int int_mask_all;
- bool enabled;
};
static int ftgmac100_alloc_rx_page(struct ftgmac100 *priv,
@@ -1126,8 +1125,6 @@ static int ftgmac100_open(struct net_device *netdev)
goto err_ncsi;
}
- priv->enabled = true;
-
return 0;
err_ncsi:
@@ -1146,11 +1143,7 @@ static int ftgmac100_stop(struct net_device *netdev)
{
struct ftgmac100 *priv = netdev_priv(netdev);
- if (!priv->enabled)
- return 0;
-
/* disable all interrupts */
- priv->enabled = false;
iowrite32(0, priv->base + FTGMAC100_OFFSET_IER);
netif_stop_queue(netdev);