From: Sam Ravnborg Date: Sun, 24 Apr 2016 16:39:52 +0000 (+0200) Subject: aeroflex/greth: fix warning about unused variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1ac6b7b4061f6c92bacf6938f94fb61b2fbf7f3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git aeroflex/greth: fix warning about unused variable 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 Cc: Kristoffer Glembo Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c index b873531c5575..bca07c5c94bd 100644 --- a/drivers/net/ethernet/aeroflex/greth.c +++ b/drivers/net/ethernet/aeroflex/greth.c @@ -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();