aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fec.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-07-08 00:23:09 +0100
committerDavid S. Miller <davem@davemloft.net>2014-07-07 21:21:22 -0700
commit5d165c5543fbcbd26e443ee501063decb4ef73b4 (patch)
treed2f5ddfaba019b485f281b15c6ce86f7ee46212e /drivers/net/ethernet/freescale/fec.h
parentnet: fec: stop the phy before shutting down the MAC (diff)
downloadlinux-dev-5d165c5543fbcbd26e443ee501063decb4ef73b4.tar.xz
linux-dev-5d165c5543fbcbd26e443ee501063decb4ef73b4.zip
net: fec: remove useless fep->opened
napi_disable() waits until the NAPI processing has completed, and then prevents any further polls. At this point, the driver then clears fep->opened. The NAPI poll function uses this to stop processing in the receive path. Hence, it will never see this variable cleared, because the NAPI poll has to complete before it will be cleared. Therefore, this variable serves no purpose, so let's remove it. Acked-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.h')
-rw-r--r--drivers/net/ethernet/freescale/fec.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h
index 671d080105a7..96d2a18f1b99 100644
--- a/drivers/net/ethernet/freescale/fec.h
+++ b/drivers/net/ethernet/freescale/fec.h
@@ -308,7 +308,6 @@ struct fec_enet_private {
struct platform_device *pdev;
- int opened;
int dev_id;
/* Phylib and MDIO interface */