projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d5ff54
)
drivers/i2c/davinci_i2c.c: Fix GCC 4.6 warning
author
Anatolij Gustschin
<agust@denx.de>
Sat, 19 Nov 2011 02:51:38 +0000
(
02:51
+0000)
committer
Wolfgang Denk
<wd@denx.de>
Wed, 23 Nov 2011 20:22:39 +0000
(21:22 +0100)
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>
drivers/i2c/davinci_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/davinci_i2c.c
b/drivers/i2c/davinci_i2c.c
index 5e3406dc8f4f04c8a87f1fd9e80aa280a4f658fd..2abddfb6ff97356e032e1daf99e5bc4673766776 100644
(file)
--- 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);
}