summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aeroflex
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2016-04-24 18:39:52 +0200
committerDavid S. Miller <davem@davemloft.net>2016-05-20 18:33:37 -0700
commitb1ac6b7b4061f6c92bacf6938f94fb61b2fbf7f3 (patch)
treeaf16c85dec0505feb0ac0113f67235392474730b /drivers/net/ethernet/aeroflex
parent21916a4a2973ab1684e921689ef8a48a6626ac4c (diff)
downloadlinux-b1ac6b7b4061f6c92bacf6938f94fb61b2fbf7f3.tar.bz2
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 <sam@ravnborg.org> Cc: Kristoffer Glembo <kristoffer@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aeroflex')
-rw-r--r--drivers/net/ethernet/aeroflex/greth.c2
1 files changed, 1 insertions, 1 deletions
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();