summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-19 02:51:38 +0000
committerWolfgang Denk <wd@denx.de>2011-11-23 21:22:39 +0100
commitbd0f5ca806c73f9e1ef4a2a0416233ab7e257df9 (patch)
tree03f64585754208f47c640b14829a932d2ca686af
parent7d5ff54fde6a22c36e4b7e0a039971b279bf21c6 (diff)
downloadu-boot-imx-bd0f5ca806c73f9e1ef4a2a0416233ab7e257df9.zip
u-boot-imx-bd0f5ca806c73f9e1ef4a2a0416233ab7e257df9.tar.gz
u-boot-imx-bd0f5ca806c73f9e1ef4a2a0416233ab7e257df9.tar.bz2
drivers/i2c/davinci_i2c.c: Fix GCC 4.6 warning
Fix: davinci_i2c.c: In function 'flush_rx': davinci_i2c.c:81:6: warning: variable 'dummy' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
-rw-r--r--drivers/i2c/davinci_i2c.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c
index 5e3406d..2abddfb 100644
--- a/drivers/i2c/davinci_i2c.c
+++ b/drivers/i2c/davinci_i2c.c
@@ -78,13 +78,11 @@ static int poll_i2c_irq(int mask)
void flush_rx(void)
{
- int dummy;
-
while (1) {
if (!(REG(I2C_STAT) & I2C_STAT_RRDY))
break;
- dummy = REG(I2C_DRR);
+ REG(I2C_DRR);
REG(I2C_STAT) = I2C_STAT_RRDY;
udelay(1000);
}