summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-05 22:59:27 +0200
committerWolfgang Denk <wd@denx.de>2011-10-09 23:24:49 +0200
commitbf513c2d752f233a9027c42b94b143de670c21ae (patch)
treef7829e9e39a9dde5941a9b9c46bf9d2cf5019c2e
parent16b9afd2b3548088319a04398dee4c7755e440c3 (diff)
drivers/net/smc91111.c: fix warning: variable ... set but not used
Fix: smc91111.c: In function 'smc_phy_configure': smc91111.c:1194:6: warning: variable 'failed' set but not used [-Wunused-but-set-variable] smc91111.c:1190:7: warning: variable 'phyaddr' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
-rw-r--r--drivers/net/smc91111.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c
index ba9c67e4c90..9b8236ddf0d 100644
--- a/drivers/net/smc91111.c
+++ b/drivers/net/smc91111.c
@@ -1187,18 +1187,12 @@ static void smc_wait_ms(unsigned int ms)
static void smc_phy_configure (struct eth_device *dev)
{
int timeout;
- byte phyaddr;
word my_phy_caps; /* My PHY capabilities */
word my_ad_caps; /* My Advertised capabilities */
word status = 0; /*;my status = 0 */
- int failed = 0;
PRINTK3 ("%s: smc_program_phy()\n", SMC_DEV_NAME);
-
- /* Get the detected phy address */
- phyaddr = SMC_PHY_ADDR;
-
/* Reset the PHY, setting all other bits to zero */
smc_write_phy_register (dev, PHY_CNTL_REG, PHY_CNTL_RST);
@@ -1296,13 +1290,11 @@ static void smc_phy_configure (struct eth_device *dev)
if (timeout < 1) {
printf ("%s: PHY auto-negotiate timed out\n", SMC_DEV_NAME);
- failed = 1;
}
/* Fail if we detected an auto-negotiate remote fault */
if (status & PHY_STAT_REM_FLT) {
printf ("%s: PHY remote fault detected\n", SMC_DEV_NAME);
- failed = 1;
}
/* Re-Configure the Receive/Phy Control register */