drivers/net/cs8900.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Sat, 19 Nov 2011 13:12:14 +0000 (13:12 +0000)
committerHeiko Schocher <hs@denx.de>
Wed, 23 Nov 2011 07:14:27 +0000 (08:14 +0100)
Fix:
cs8900.c: In function 'get_reg_init_bus':
cs8900.c:69:14: warning: variable 'c' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/net/cs8900.c

index 9424fb2bb69cc697ea0fb3ab1a1dc54f511d7aec..e04a784a4bb099eacff6d3ead4ac0ba6ec35267e 100644 (file)
 static u16 get_reg_init_bus(struct eth_device *dev, int regno)
 {
        /* force 16 bit busmode */
-       volatile u8 c;
        struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv);
        uint8_t volatile * const iob = (uint8_t volatile * const)dev->iobase;
 
-       c = readb(iob);
-       c = readb(iob + 1);
-       c = readb(iob);
-       c = readb(iob + 1);
-       c = readb(iob);
+       readb(iob);
+       readb(iob + 1);
+       readb(iob);
+       readb(iob + 1);
+       readb(iob);
 
        REG_WRITE(regno, &priv->regs->pptr);
        return REG_READ(&priv->regs->pdata);