Explorar el Código

[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 hace 13 años
padre
commit
ce5df27ce5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/drivers/net/w89c840.c

+ 2
- 2
src/drivers/net/w89c840.c Ver fichero

@@ -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…
Cancelar
Guardar