mirror of https://github.com/ipxe/ipxe.git
[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>pull/1/head
parent
b2f2611675
commit
ce5df27ce5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue