MLK-16474 net: fec: fixup: remove the unnecessary variable
authorFugang Duan <fugang.duan@nxp.com>
Tue, 12 Sep 2017 03:20:22 +0000 (11:20 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:35 +0000 (15:38 -0500)
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>
drivers/net/ethernet/freescale/fec_fixup.c

index da9e03d..097de6f 100644 (file)
@@ -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;
        }
 }