From: Jan Glauber Date: Mon, 11 Apr 2016 15:28:36 +0000 (+0200) Subject: i2c: octeon: Remove superfluous check in octeon_i2c_test_iflg X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b69e5c672d57fa300fef368106ab61c9214a760d;p=linux-beck.git i2c: octeon: Remove superfluous check in octeon_i2c_test_iflg Remove superfluous check and stray newline. Signed-off-by: Jan Glauber Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c index b25c49151ea4..4275007c2907 100644 --- a/drivers/i2c/busses/i2c-octeon.c +++ b/drivers/i2c/busses/i2c-octeon.c @@ -198,10 +198,9 @@ static irqreturn_t octeon_i2c_isr(int irq, void *dev_id) return IRQ_HANDLED; } - static int octeon_i2c_test_iflg(struct octeon_i2c *i2c) { - return (octeon_i2c_ctl_read(i2c) & TWSI_CTL_IFLG) != 0; + return (octeon_i2c_ctl_read(i2c) & TWSI_CTL_IFLG); } /**