Skip to content

Commit

Permalink
of: mdio: fix compile warning in of_mdiobus_register_phy()
Browse files Browse the repository at this point in the history
Commit de906af (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>
  • Loading branch information
Christian Engelmayer authored and David S. Miller committed May 26, 2014
1 parent 506724c commit 587b24a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/of/of_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 587b24a

Please sign in to comment.