Browse Source

[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>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
b2f2611675
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      src/drivers/net/smc9000.c

+ 0
- 3
src/drivers/net/smc9000.c View File

@@ -357,7 +357,6 @@ static void smc_phy_configure(int ioaddr)
357 357
     word my_phy_caps; // My PHY capabilities
358 358
     word my_ad_caps; // My Advertised capabilities
359 359
     word status;
360
-    int failed = 0;
361 360
     int rpc_cur_mode = RPC_DEFAULT;
362 361
     int lastPhy18;
363 362
 
@@ -464,14 +463,12 @@ static void smc_phy_configure(int ioaddr)
464 463
     if (timeout < 1)
465 464
     {
466 465
         PRINTK2("PHY auto-negotiate timed out\n");
467
-        failed = 1;
468 466
     }
469 467
 
470 468
     // Fail if we detected an auto-negotiate remote fault
471 469
     if (status & PHY_STAT_REM_FLT)
472 470
     {
473 471
         PRINTK2("PHY remote fault detected\n");
474
-        failed = 1;
475 472
     }
476 473
 
477 474
     // Set our sysctl parameters to match auto-negotiation results

Loading…
Cancel
Save