]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[w89c840] Avoid unused variable warning in gcc 4.6
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:24:29 +0000 (19:24 +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/w89c840.c

index c9d22a12436d55c552cb1a4e3c99f3e3f765d63e..b3149550f4c0954ac9a82980f11ec179792f6c47 100644 (file)
@@ -625,7 +625,7 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) {
 
 
     u16 sum = 0;
-    int i, j;
+    int i;
     unsigned short value;
 
     if (p->ioaddr == 0)
@@ -666,7 +666,7 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) {
     adjust_pci_device(p);
 
     /* Ok. Got one. Read the eeprom. */
-    for (j = 0, i = 0; i < 0x40; i++) {
+    for (i = 0; i < 0x40; i++) {
         value = eeprom_read(ioaddr, i);
         eeprom[i] = value;
         sum += value;