]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[smc9000] Avoid unused variable warning in gcc 4.6
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:23:47 +0000 (19:23 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:32:24 +0000 (19:32 +0000)
Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/smc9000.c

index aa29360ba37af62e59dba1a4dca71f3c47f5e5b3..31e418a97be34f1d9001e9c201d72c291cae7aef 100644 (file)
@@ -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