From: Roel Kluin Date: Tue, 24 Feb 2009 18:19:48 +0000 (+0100) Subject: i2c: Fix misplaced parentheses X-Git-Tag: v3.0~10498^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f29d2e0275a4f03ef2fd158e484508dcb0c64efb;p=platform%2Fkernel%2Flinux-amlogic.git i2c: Fix misplaced parentheses Fix misplaced parentheses. Signed-off-by: Roel Kluin Signed-off-by: Jean Delvare --- diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index b1c9abe..e7d9848 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -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: