Skip to content

Commit

Permalink
i2c: octeon: Use booleon values for booleon variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Glauber authored and Wolfram Sang committed Aug 25, 2016
1 parent caa505f commit eefbfe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/busses/i2c-octeon-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

/*
Expand Down

0 comments on commit eefbfe0

Please sign in to comment.