diff options
author | Anatolij Gustschin <agust@denx.de> | 2011-11-15 17:20:54 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-17 00:28:59 +0400 |
commit | e560492b322b02037247b8d8ac5cd94f70c46574 (patch) | |
tree | 39cbbf668ac23a2a49990fb2c088c429b8df3b25 /drivers | |
parent | eec3ae68ad92a5af8642846321daad047e4f9cde (diff) | |
download | u-boot-e560492b322b02037247b8d8ac5cd94f70c46574.tar.xz |
drivers/net/at91_emac.c: Fix GCC 4.6 warning
Fix:
at91_emac.c: In function 'at91emac_write_hwaddr':
at91_emac.c:477:15: warning: variable 'dev' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/at91_emac.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/at91_emac.c b/drivers/net/at91_emac.c index 97d273999a..9bda1fc695 100644 --- a/drivers/net/at91_emac.c +++ b/drivers/net/at91_emac.c @@ -474,11 +474,9 @@ static int at91emac_recv(struct eth_device *netdev) static int at91emac_write_hwaddr(struct eth_device *netdev) { - emac_device *dev; at91_emac_t *emac; at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; emac = (at91_emac_t *) netdev->iobase; - dev = (emac_device *) netdev->priv; writel(1 << ATMEL_ID_EMAC, &pmc->pcer); DEBUG_AT91EMAC("init MAC-ADDR %02x:%02x:%02x:%02x:%02x:%02x\n", |