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

Loading…
Cancel
Save