mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
drivers/net/cs8900.c: Fix GCC 4.6 warning
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>
This commit is contained in:
parent
604256a449
commit
da227355bf
@ -66,15 +66,14 @@
|
|||||||
static u16 get_reg_init_bus(struct eth_device *dev, int regno)
|
static u16 get_reg_init_bus(struct eth_device *dev, int regno)
|
||||||
{
|
{
|
||||||
/* force 16 bit busmode */
|
/* force 16 bit busmode */
|
||||||
volatile u8 c;
|
|
||||||
struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv);
|
struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv);
|
||||||
uint8_t volatile * const iob = (uint8_t volatile * const)dev->iobase;
|
uint8_t volatile * const iob = (uint8_t volatile * const)dev->iobase;
|
||||||
|
|
||||||
c = readb(iob);
|
readb(iob);
|
||||||
c = readb(iob + 1);
|
readb(iob + 1);
|
||||||
c = readb(iob);
|
readb(iob);
|
||||||
c = readb(iob + 1);
|
readb(iob + 1);
|
||||||
c = readb(iob);
|
readb(iob);
|
||||||
|
|
||||||
REG_WRITE(regno, &priv->regs->pptr);
|
REG_WRITE(regno, &priv->regs->pptr);
|
||||||
return REG_READ(&priv->regs->pdata);
|
return REG_READ(&priv->regs->pdata);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user