david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[eepro] Avoid unused variable warning in gcc 4.6

From a cursory examination, it appears as though the calculation of
tx_available is redundant, since eepro_transmit() waits for transmit
completion before returning anyway.

Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-03-16 19:51:02 +00:00
parent ce5df27ce5
commit 7f2903c623
1 changed files with 1 additions and 0 deletions

View File

@ -422,6 +422,7 @@ static void eepro_transmit(
tx_available = tx_start - tx_end;
else
tx_available = XMT_RAM;
assert ( length <= tx_available );
last = tx_end;
end = last + (((length + 3) >> 1) << 1) + XMT_HEADER;
if (end >= (XMT_UPPER_LIMIT << 8)) {