Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1df3ab1b authored by Rabin Vincent's avatar Rabin Vincent Committed by Ben Dooks
Browse files

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: default avatarLinus Walleij <linus.walleij@stericsson.com>
Acked-by: default avatarSrinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: default avatarRabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent a1c27678
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 =