]> git.sur5r.net Git - u-boot/commitdiff
drivers/net/at91_emac.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Tue, 15 Nov 2011 13:20:54 +0000 (13:20 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 16 Nov 2011 20:28:59 +0000 (21:28 +0100)
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>
drivers/net/at91_emac.c

index 97d273999af0514375557ae1de9bfd32603588ec..9bda1fc69519b9ebedcff09b5f3de9a72f540545 100644 (file)
@@ -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",