Browse Source

[w89c840] 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
ce5df27ce5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/net/w89c840.c

+ 2
- 2
src/drivers/net/w89c840.c View File

@@ -625,7 +625,7 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) {
625 625
 
626 626
 
627 627
     u16 sum = 0;
628
-    int i, j;
628
+    int i;
629 629
     unsigned short value;
630 630
 
631 631
     if (p->ioaddr == 0)
@@ -666,7 +666,7 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) {
666 666
     adjust_pci_device(p);
667 667
 
668 668
     /* Ok. Got one. Read the eeprom. */
669
-    for (j = 0, i = 0; i < 0x40; i++) {
669
+    for (i = 0; i < 0x40; i++) {
670 670
         value = eeprom_read(ioaddr, i);
671 671
         eeprom[i] = value;
672 672
         sum += value;

Loading…
Cancel
Save