aeroflex/greth: fix warning about unused variable
authorSam Ravnborg <sam@ravnborg.org>
Sun, 24 Apr 2016 16:39:52 +0000 (18:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 May 2016 01:33:37 +0000 (18:33 -0700)
Fix following warning:
aeroflex/greth.c:1326:11: warning: unused variable 'phy' [-Wunused-variable]

The variable was unused - remove it.
It looks like this warning has been there forever - was found by an
allyesconfig build of sparc32.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aeroflex/greth.c

index b873531c557584466ebffdb78fb209d99c83398a..bca07c5c94bdf255f27846812feb12232aac1b08 100644 (file)
@@ -1323,7 +1323,7 @@ static inline int phy_aneg_done(struct phy_device *phydev)
 
 static int greth_mdio_init(struct greth_private *greth)
 {
-       int ret, phy;
+       int ret;
        unsigned long timeout;
 
        greth->mdio = mdiobus_alloc();