david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[epic100] 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>
This commit is contained in:
Michael Brown 2011-03-16 19:20:49 +00:00
parent c0215780de
commit 6044396cd7
1 changed files with 0 additions and 2 deletions

View File

@ -231,7 +231,6 @@ static void set_rx_mode(void)
epic100_open(void)
{
int mii_reg5;
int full_duplex = 0;
unsigned long tmp;
epic100_init_ring();
@ -245,7 +244,6 @@ epic100_open(void)
mii_reg5 = mii_read(phys[0], 5);
if (mii_reg5 != 0xffff && (mii_reg5 & 0x0100)) {
full_duplex = 1;
printf(" full-duplex mode");
tmp |= TC_LM_FULL_DPX;
} else