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>
/* Misc */
int int_mask_all;
- bool enabled;
};
static int ftgmac100_alloc_rx_page(struct ftgmac100 *priv,
goto err_ncsi;
}
- priv->enabled = true;
-
return 0;
err_ncsi:
{
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);