ar71xx: fix compiler warnings in mdio-bitbang.c for 4.4
[openwrt/staging/lynxis.git] / target / linux / ar71xx / patches-4.4 / 900-mdio_bitbang_ignore_ta_value.patch
index 4536d519f8dcd7e18c8813e065f47dcbaa015b8e..8f8f349a660593fd004bb160cb3227207ebf8ee9 100644 (file)
@@ -1,5 +1,14 @@
 --- a/drivers/net/phy/mdio-bitbang.c
 +++ b/drivers/net/phy/mdio-bitbang.c
+@@ -155,7 +155,7 @@ static int mdiobb_cmd_addr(struct mdiobb
+ static int mdiobb_read(struct mii_bus *bus, int phy, int reg)
+ {
+       struct mdiobb_ctrl *ctrl = bus->priv;
+-      int ret, i;
++      int ret;
+       if (reg & MII_ADDR_C45) {
+               reg = mdiobb_cmd_addr(ctrl, phy, reg);
 @@ -165,19 +165,7 @@ static int mdiobb_read(struct mii_bus *b
  
        ctrl->ops->set_mdio_dir(ctrl, 0);