summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-29 09:37:48 +0000
committerWolfgang Denk <wd@denx.de>2011-11-03 20:39:35 +0100
commit3d458d2dfb06a62d40037d48a37b715c135fd3c8 (patch)
tree1b7295c9a9c455aab9bb48a3d0001a56a0242e1d /drivers
parenta0f21ff18a9dd4dffd4d3533613903ab1e70e14b (diff)
downloadu-boot-imx-3d458d2dfb06a62d40037d48a37b715c135fd3c8.zip
u-boot-imx-3d458d2dfb06a62d40037d48a37b715c135fd3c8.tar.gz
u-boot-imx-3d458d2dfb06a62d40037d48a37b715c135fd3c8.tar.bz2
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: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/eepro100.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
index 86709a7..07ec34c 100644
--- a/drivers/net/eepro100.c
+++ b/drivers/net/eepro100.c
@@ -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;