diff options
author | Jan Glauber <jglauber@cavium.com> | 2016-04-11 17:28:36 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-04-14 10:57:55 +0200 |
commit | b69e5c672d57fa300fef368106ab61c9214a760d (patch) | |
tree | 65add9e60eb6656ed63b71ced3872d8d04727be5 /drivers/i2c/busses | |
parent | c57db7098b72f406a4834b4b74268db54eae3fb7 (diff) | |
download | op-kernel-dev-b69e5c672d57fa300fef368106ab61c9214a760d.zip op-kernel-dev-b69e5c672d57fa300fef368106ab61c9214a760d.tar.gz |
i2c: octeon: Remove superfluous check in octeon_i2c_test_iflg
Remove superfluous check and stray newline.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-octeon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c index b25c491..4275007 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); } /** |