i2c-nomadik: fix operator precedence warning
authorRabin Vincent <rabin.vincent@stericsson.com>
Tue, 27 Apr 2010 05:01:08 +0000 (10:31 +0530)
committerBen Dooks <ben-linux@fluff.org>
Wed, 19 May 2010 23:19:00 +0000 (00:19 +0100)
Fix this warning:
i2c-nomadik.c:707: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~'

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-nomadik.c

index 170dbd70b934f02210fa1a5ded7a78fa59eec53b..73de8ade10b107ae22c426fd36051aad5352da90 100644 (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 =