i2c-nomadik: fix operator precedence warning

Fix this warning:
i2c-nomadik.c:707: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~'

Acked-by: Linus Walleij <[email protected]>
Acked-by: Srinidhi Kasagar <[email protected]>
Signed-off-by: Rabin Vincent <[email protected]>
Signed-off-by: Ben Dooks <[email protected]>
This commit is contained in:
Rabin Vincent 2010-04-27 10:31:08 +05:30 • committed by Ben Dooks
commit 1df3ab1b91

View file

@ -704,7 +704,8 @@ static irqreturn_t i2c_irq_handler(int irq, void *arg)
case I2C_IT_MTD:
case I2C_IT_MTDWS:
if (dev->cli.operation == I2C_READ) {
while (!readl(dev->virtbase + I2C_RISR) & I2C_IT_RXFE) {
while (!(readl(dev->virtbase + I2C_RISR)
& I2C_IT_RXFE)) {
if (dev->cli.count == 0)
break;
*dev->cli.buffer =