summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-10 12:21:44 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 21:12:48 +0100
commitd14a94bf686bdcee71924c8bbf76ef67b0b4bb0f (patch)
tree12f147a7524b077a084d3d35d664516702dad567 /arch/powerpc
parentc33b92ebcc09de7eed10237abd5b330cd5c58c33 (diff)
arch/powerpc/cpu/mpc512x/i2c.c: Fix GCC 4.6 warnings
Fix: i2c.c: In function 'wait_for_bb': i2c.c:81:16: warning: variable 'temp' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/cpu/mpc512x/i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc512x/i2c.c b/arch/powerpc/cpu/mpc512x/i2c.c
index e2d909751e..0ea12806b9 100644
--- a/arch/powerpc/cpu/mpc512x/i2c.c
+++ b/arch/powerpc/cpu/mpc512x/i2c.c
@@ -78,9 +78,8 @@ static int wait_for_bb (void)
status = mpc_reg_in (&regs->msr);
while (timeout-- && (status & I2C_BB)) {
- volatile int temp;
mpc_reg_out (&regs->mcr, I2C_STA, I2C_STA);
- temp = mpc_reg_in (&regs->mdr);
+ (void)mpc_reg_in(&regs->mdr);
mpc_reg_out (&regs->mcr, 0, I2C_STA);
mpc_reg_out (&regs->mcr, 0, 0);
mpc_reg_out (&regs->mcr, I2C_EN, 0);