diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-04 15:55:06 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:09:27 +0100 |
commit | 93067497527a2828c0c2b0c8dd7c498241d75d79 (patch) | |
tree | 369cf43ac752c121a490c9da5f0b8ac5e614c4e6 /arch | |
parent | ee6ed89c5b144f621969a2ef7188b52ec0c2ac9b (diff) | |
download | u-boot-imx-93067497527a2828c0c2b0c8dd7c498241d75d79.zip u-boot-imx-93067497527a2828c0c2b0c8dd7c498241d75d79.tar.gz u-boot-imx-93067497527a2828c0c2b0c8dd7c498241d75d79.tar.bz2 |
arch/powerpc/cpu/mpc5xxx/i2c.c: fix GC 4.6 build warnings
Fix:
i2c.c: In function 'wait_for_bb':
i2c.c:104:16: warning: variable 'temp' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/cpu/mpc5xxx/i2c.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/cpu/mpc5xxx/i2c.c b/arch/powerpc/cpu/mpc5xxx/i2c.c index f9d293b..b423d2f 100644 --- a/arch/powerpc/cpu/mpc5xxx/i2c.c +++ b/arch/powerpc/cpu/mpc5xxx/i2c.c @@ -100,14 +100,11 @@ static int wait_for_bb(void) status = mpc_reg_in(®s->msr); while (timeout-- && (status & I2C_BB)) { -#if 1 - volatile int temp; mpc_reg_out(®s->mcr, I2C_STA, I2C_STA); - temp = mpc_reg_in(®s->mdr); + (void)mpc_reg_in(®s->mdr); mpc_reg_out(®s->mcr, 0, I2C_STA); mpc_reg_out(®s->mcr, 0, 0); mpc_reg_out(®s->mcr, I2C_EN, 0); -#endif udelay(15); status = mpc_reg_in(®s->msr); } |