Commit b69e5c67 authored by Jan Glauber's avatar Jan Glauber Committed by Wolfram Sang

i2c: octeon: Remove superfluous check in octeon_i2c_test_iflg

Remove superfluous check and stray newline.
Signed-off-by: default avatarJan Glauber <jglauber@cavium.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent c57db709
...@@ -198,10 +198,9 @@ static irqreturn_t octeon_i2c_isr(int irq, void *dev_id) ...@@ -198,10 +198,9 @@ static irqreturn_t octeon_i2c_isr(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int octeon_i2c_test_iflg(struct octeon_i2c *i2c) 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);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment