Commit 67eee06c authored by Kim Phillips's avatar Kim Phillips Committed by Wolfgang Denk
Browse files

mpc83xx: km83xx_i2c - fix gcc 4.6 compiler warning



Configuring for kmeter1 board...
km83xx_i2c.c: In function 'i2c_make_abort':
km83xx_i2c.c:44:8: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
Acked-by: default avatarHeiko Schocher <hs@denx.de>
parent b86c7709
......@@ -41,7 +41,6 @@ int i2c_make_abort(void)
{
struct fsl_i2c *dev;
dev = (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C_OFFSET);
uchar dummy;
uchar last;
int nbr_read = 0;
int i = 0;
......@@ -52,7 +51,7 @@ int i2c_make_abort(void)
udelay(DELAY_ABORT_SEQ);
out_8(&dev->cr, (I2C_CR_MEN | I2C_CR_MSTA));
udelay(DELAY_ABORT_SEQ);
dummy = in_8(&dev->dr);
in_8(&dev->dr);
udelay(DELAY_ABORT_SEQ);
last = in_8(&dev->dr);
nbr_read++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment