mirror of https://github.com/ipxe/ipxe.git
[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>pull/1/head
parent
c0215780de
commit
6044396cd7
|
@ -231,7 +231,6 @@ static void set_rx_mode(void)
|
||||||
epic100_open(void)
|
epic100_open(void)
|
||||||
{
|
{
|
||||||
int mii_reg5;
|
int mii_reg5;
|
||||||
int full_duplex = 0;
|
|
||||||
unsigned long tmp;
|
unsigned long tmp;
|
||||||
|
|
||||||
epic100_init_ring();
|
epic100_init_ring();
|
||||||
|
@ -245,7 +244,6 @@ epic100_open(void)
|
||||||
|
|
||||||
mii_reg5 = mii_read(phys[0], 5);
|
mii_reg5 = mii_read(phys[0], 5);
|
||||||
if (mii_reg5 != 0xffff && (mii_reg5 & 0x0100)) {
|
if (mii_reg5 != 0xffff && (mii_reg5 & 0x0100)) {
|
||||||
full_duplex = 1;
|
|
||||||
printf(" full-duplex mode");
|
printf(" full-duplex mode");
|
||||||
tmp |= TC_LM_FULL_DPX;
|
tmp |= TC_LM_FULL_DPX;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue