diff options
author | Anatolij Gustschin <agust@denx.de> | 2011-11-19 02:51:38 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-23 21:22:39 +0100 |
commit | bd0f5ca806c73f9e1ef4a2a0416233ab7e257df9 (patch) | |
tree | 03f64585754208f47c640b14829a932d2ca686af /drivers/i2c | |
parent | 7d5ff54fde6a22c36e4b7e0a039971b279bf21c6 (diff) | |
download | u-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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/davinci_i2c.c | 4 |
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); } |