diff options
author | Michael Brown | 2011-03-16 20:23:47 +0100 |
---|---|---|
committer | Michael Brown | 2011-03-16 20:32:24 +0100 |
commit | b2f2611675b1f0e55f28077b76b900a38b390659 (patch) | |
tree | 7dafe3d9139825e19b26aedb5363bea348496d79 /src/drivers/net/smc9000.c | |
parent | [etherfabric] Avoid unused variable warning in gcc 4.6 (diff) | |
download | ipxe-b2f2611675b1f0e55f28077b76b900a38b390659.tar.gz ipxe-b2f2611675b1f0e55f28077b76b900a38b390659.tar.xz ipxe-b2f2611675b1f0e55f28077b76b900a38b390659.zip |
[smc9000] Avoid unused variable warning in gcc 4.6
Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/smc9000.c')
-rw-r--r-- | src/drivers/net/smc9000.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drivers/net/smc9000.c b/src/drivers/net/smc9000.c index aa29360b..31e418a9 100644 --- a/src/drivers/net/smc9000.c +++ b/src/drivers/net/smc9000.c @@ -357,7 +357,6 @@ static void smc_phy_configure(int ioaddr) word my_phy_caps; // My PHY capabilities word my_ad_caps; // My Advertised capabilities word status; - int failed = 0; int rpc_cur_mode = RPC_DEFAULT; int lastPhy18; @@ -464,14 +463,12 @@ static void smc_phy_configure(int ioaddr) if (timeout < 1) { PRINTK2("PHY auto-negotiate timed out\n"); - failed = 1; } // Fail if we detected an auto-negotiate remote fault if (status & PHY_STAT_REM_FLT) { PRINTK2("PHY remote fault detected\n"); - failed = 1; } // Set our sysctl parameters to match auto-negotiation results |