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

Commit f29d2e02 authored by Roel Kluin's avatar Roel Kluin Committed by Jean Delvare
Browse files

i2c: Fix misplaced parentheses



Fix misplaced parentheses.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent f7e603ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1831,7 +1831,8 @@ static s32 i2c_smbus_xfer_emulated(struct i2c_adapter * adapter, u16 addr,
	case I2C_SMBUS_QUICK:
		msg[0].len = 0;
		/* Special case: The read/write field is used as data */
		msg[0].flags = flags | (read_write==I2C_SMBUS_READ)?I2C_M_RD:0;
		msg[0].flags = flags | (read_write == I2C_SMBUS_READ ?
					I2C_M_RD : 0);
		num = 1;
		break;
	case I2C_SMBUS_BYTE: