mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-15 10:08:18 +00:00
[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:
parent
c0215780de
commit
6044396cd7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user