Commit 2bc24f0f authored by Jan Glauber's avatar Jan Glauber Committed by Kleber Sacilotto de Souza

i2c: octeon: Use booleon values for booleon variables

BugLink: https://bugs.launchpad.net/bugs/1688132

Initialize booleon values with true instead of 1.
Signed-off-by: default avatarJan Glauber <jglauber@cavium.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
(cherry picked from commit eefbfe01)
Signed-off-by: default avatardann frazier <dann.frazier@canonical.com>
Acked-by: default avatarColin King <colin.king@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@canonical.com>
parent f6af7524
......@@ -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;
/*
......
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