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>
This commit is contained in:
Anatolij Gustschin 2011-11-19 02:51:38 +00:00 committed by Wolfgang Denk
parent 7d5ff54fde
commit bd0f5ca806
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}