Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1392398 > unrolled thread

[PATCH v8 7/8] i2c: cavium: Use booleon values for booleon variables

Started byJan Glauber <jglauber@cavium.com>
First post2016-05-02 19:40 +0200
Last post2016-05-02 19:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v8 7/8] i2c: cavium: Use booleon values for booleon variables Jan Glauber <jglauber@cavium.com> - 2016-05-02 19:40 +0200

#1392398 — [PATCH v8 7/8] i2c: cavium: Use booleon values for booleon variables

FromJan Glauber <jglauber@cavium.com>
Date2016-05-02 19:40 +0200
Subject[PATCH v8 7/8] i2c: cavium: Use booleon values for booleon variables
Message-ID<rupZ9-7Ji-25@gated-at.bofh.it>
Initialize booleon values with true instead of 1.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
---
 drivers/i2c/busses/i2c-cavium.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-cavium.c b/drivers/i2c/busses/i2c-cavium.c
index e95ee5c..140f0d1 100644
--- a/drivers/i2c/busses/i2c-cavium.c
+++ b/drivers/i2c/busses/i2c-cavium.c
@@ -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;
 
 	/*
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web