Skip to content
Snippets Groups Projects
Commit 3d458d2d authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

drivers/net/eepro100.c: fix GCC 4.6 build warnings


Fix:
eepro100.c: In function 'read_hw_addr':
eepro100.c:926:6: warning: variable 'eeprom' set but not used
[-Wunused-but-set-variable]

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent a0f21ff1
No related branches found
No related tags found
No related merge requests found
......@@ -923,7 +923,6 @@ static void purge_tx_ring (struct eth_device *dev)
static void read_hw_addr (struct eth_device *dev, bd_t * bis)
{
u16 eeprom[0x40];
u16 sum = 0;
int i, j;
int addr_len = read_eeprom (dev, 0, 6) == 0xffff ? 8 : 6;
......@@ -931,7 +930,6 @@ static void read_hw_addr (struct eth_device *dev, bd_t * bis)
for (j = 0, i = 0; i < 0x40; i++) {
u16 value = read_eeprom (dev, i, addr_len);
eeprom[i] = value;
sum += value;
if (i < 3) {
dev->enetaddr[j++] = value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment