summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorFugang Duan <fugang.duan@nxp.com>2017-09-12 11:20:22 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:28:31 +0800
commit9a7677f8e857f99a15175d129df27c488a7ee4f9 (patch)
treee2623c44ebef8b5ea4412b281d4f80d09ff2cc4c /drivers/net/ethernet
parent82f023f3347689d7ab11ced5d35e39edcbe3e4e8 (diff)
MLK-16474 net: fec: fixup: remove the unnecessary variable
Remove the unnecessary variable. (BuildInfo: SCFW 3e70523d, IMX-MKIMAGE 0, ATF 0) Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/freescale/fec_fixup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fec_fixup.c b/drivers/net/ethernet/freescale/fec_fixup.c
index da9e03d150e7..097de6fb6d16 100644
--- a/drivers/net/ethernet/freescale/fec_fixup.c
+++ b/drivers/net/ethernet/freescale/fec_fixup.c
@@ -56,7 +56,6 @@ static int ar8031_phy_fixup(struct phy_device *dev)
void fec_enet_register_fixup(struct net_device *ndev)
{
struct fec_enet_private *fep = netdev_priv(ndev);
- static int registered = 0;
int err;
if (!IS_BUILTIN(CONFIG_PHYLIB))
@@ -71,7 +70,7 @@ void fec_enet_register_fixup(struct net_device *ndev)
ar8031_phy_fixup);
if (err)
netdev_info(ndev, "Cannot register PHY board fixup\n");
- registered = 1;
+ ar8031_registered = 1;
}
}