]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i2c: octeon: Use booleon values for booleon variables
authorJan Glauber <jglauber@cavium.com>
Wed, 24 Aug 2016 21:25:48 +0000 (23:25 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 25 Aug 2016 22:42:00 +0000 (00:42 +0200)
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>
drivers/i2c/busses/i2c-octeon-core.c

index a327a5fa453e5ac42202580ba24066dc0c6646cf..f45ea5eef513db91bd178cb156816e6106ff153e 100644 (file)
@@ -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;
 
        /*