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>
diff --git a/drivers/i2c/busses/i2c-octeon-core.c b/drivers/i2c/busses/i2c-octeon-core.c
index a327a5f..f45ea5e 100644
--- a/drivers/i2c/busses/i2c-octeon-core.c
+++ b/drivers/i2c/busses/i2c-octeon-core.c
@@ -63,7 +63,7 @@
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 int octeon_i2c_hlc_wait(struct octeon_i2c *i2c)
{
- bool first = 1;
+ bool first = true;
int time_left;
/*