提交 eefbfe01 编写于 作者: J Jan Glauber 提交者: Wolfram Sang

i2c: octeon: Use booleon values for booleon variables

Initialize booleon values with true instead of 1.
Signed-off-by: NJan Glauber <jglauber@cavium.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 caa505f2
...@@ -63,7 +63,7 @@ static bool octeon_i2c_test_ready(struct octeon_i2c *i2c, bool *first) ...@@ -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) static int octeon_i2c_wait(struct octeon_i2c *i2c)
{ {
long time_left; long time_left;
bool first = 1; bool first = true;
/* /*
* Some chip revisions don't assert the irq in the interrupt * 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) ...@@ -176,7 +176,7 @@ static void octeon_i2c_hlc_disable(struct octeon_i2c *i2c)
*/ */
static int octeon_i2c_hlc_wait(struct octeon_i2c *i2c) static int octeon_i2c_hlc_wait(struct octeon_i2c *i2c)
{ {
bool first = 1; bool first = true;
int time_left; int time_left;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册