Skip to contentSkip to conversation

media: i2c: imx219.c: fix assignment of 0/1 to bool variable

PATCH In review Daniel W. S. Almeida 1 participant 1 message Aug 7, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 16/20 media: i2c: imx219.c: fix assignment of 0/1 to bool variable

From: "Daniel W. S. Almeida" <[email protected]>

Fix the following coccinelle report:

drivers/media/i2c/imx219.c:1191:1-18:
WARNING: Assignment of 0/1 to bool variable

Replace the assignment to 0 with false instead.

Found using - Coccinelle (http://coccinelle.lip6.fr)

---
 drivers/media/i2c/imx219.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/imx219.c +1 -1
index f64c0ef7a897..1cee45e35355 100644
@@ -1188,7 +1188,7 @@ static int __maybe_unused imx219_resume(struct device *dev)
 
 error:
 	imx219_stop_streaming(imx219);
-	imx219->streaming = 0;
+	imx219->streaming = false;
 
 	return ret;
 }
Signature · 1 line
2.28.0