Fix:
i2c.c: In function 'wait_for_bb':
i2c.c:109: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>
status = mpc_reg_in (®s->sr);
while (timeout-- && (status & I2C_BB)) {
status = mpc_reg_in (®s->sr);
while (timeout-- && (status & I2C_BB)) {
-#if 1
- volatile int temp;
mpc_reg_out (®s->cr, I2C_STA, I2C_STA);
mpc_reg_out (®s->cr, I2C_STA, I2C_STA);
- temp = mpc_reg_in (®s->dr);
+ (void)mpc_reg_in (®s->dr);
mpc_reg_out (®s->cr, 0, I2C_STA);
mpc_reg_out (®s->cr, 0, 0);
mpc_reg_out (®s->cr, I2C_EN, 0);
mpc_reg_out (®s->cr, 0, I2C_STA);
mpc_reg_out (®s->cr, 0, 0);
mpc_reg_out (®s->cr, I2C_EN, 0);
udelay (1000);
status = mpc_reg_in (®s->sr);
}
udelay (1000);
status = mpc_reg_in (®s->sr);
}