Commit 8396e1cb authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by David S. Miller

ftgmac100: Remove "enabled" flags

It's not used in any meaningful way
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 831fb338
...@@ -84,7 +84,6 @@ struct ftgmac100 { ...@@ -84,7 +84,6 @@ struct ftgmac100 {
/* Misc */ /* Misc */
int int_mask_all; int int_mask_all;
bool enabled;
}; };
static int ftgmac100_alloc_rx_page(struct ftgmac100 *priv, static int ftgmac100_alloc_rx_page(struct ftgmac100 *priv,
...@@ -1126,8 +1125,6 @@ static int ftgmac100_open(struct net_device *netdev) ...@@ -1126,8 +1125,6 @@ static int ftgmac100_open(struct net_device *netdev)
goto err_ncsi; goto err_ncsi;
} }
priv->enabled = true;
return 0; return 0;
err_ncsi: err_ncsi:
...@@ -1146,11 +1143,7 @@ static int ftgmac100_stop(struct net_device *netdev) ...@@ -1146,11 +1143,7 @@ static int ftgmac100_stop(struct net_device *netdev)
{ {
struct ftgmac100 *priv = netdev_priv(netdev); struct ftgmac100 *priv = netdev_priv(netdev);
if (!priv->enabled)
return 0;
/* disable all interrupts */ /* disable all interrupts */
priv->enabled = false;
iowrite32(0, priv->base + FTGMAC100_OFFSET_IER); iowrite32(0, priv->base + FTGMAC100_OFFSET_IER);
netif_stop_queue(netdev); netif_stop_queue(netdev);
......
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