]> git.karo-electronics.de Git - linux-beck.git/commitdiff
of: mdio: fix compile warning in of_mdiobus_register_phy()
authorChristian Engelmayer <cengelma@gmx.at>
Fri, 23 May 2014 21:33:55 +0000 (23:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 May 2014 04:32:37 +0000 (00:32 -0400)
Commit de906af1 (net: phy: make of_set_phy_supported work with genphy driver)
removed the last user of variable 'max_speed' in function
of_mdiobus_register_phy(), leading to compile warning "unused variable
‘max_speed’ [-Wunused-variable]". Thus remove it.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c

index b85709458639b0b9df9d3fe1da54e766b721a17d..7c6e277cdd1f853f8940b74788fc765977510948 100644 (file)
@@ -46,7 +46,6 @@ static int of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *chi
        struct phy_device *phy;
        bool is_c45;
        int rc;
-       u32 max_speed = 0;
        u32 phy_id;
 
        is_c45 = of_device_is_compatible(child,