diff options
author | Jan Glauber <jglauber@cavium.com> | 2016-08-25 00:25:48 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-08-26 01:42:00 +0300 |
commit | eefbfe011f68a6efcdeb244bf9f917499069daab (patch) | |
tree | 2ab6a74c112148cdc7f2d3b8be95294bf1b82ecf /drivers/i2c | |
parent | caa505f20df01b326ca99dcace0c4656298d94f3 (diff) | |
download | linux-eefbfe011f68a6efcdeb244bf9f917499069daab.tar.xz |
i2c: octeon: Use booleon values for booleon variables
Initialize booleon values with true instead of 1.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-octeon-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-octeon-core.c b/drivers/i2c/busses/i2c-octeon-core.c index a327a5fa453e..f45ea5eef513 100644 --- a/drivers/i2c/busses/i2c-octeon-core.c +++ b/drivers/i2c/busses/i2c-octeon-core.c @@ -63,7 +63,7 @@ static bool octeon_i2c_test_ready(struct octeon_i2c *i2c, bool *first) static int octeon_i2c_wait(struct octeon_i2c *i2c) { long time_left; - bool first = 1; + bool first = true; /* * Some chip revisions don't assert the irq in the interrupt @@ -176,7 +176,7 @@ static void octeon_i2c_hlc_disable(struct octeon_i2c *i2c) */ static int octeon_i2c_hlc_wait(struct octeon_i2c *i2c) { - bool first = 1; + bool first = true; int time_left; /* |