Skip to contentSkip to conversation

staging: media: mt9m114: Use true/false instead of 1/0 for bool initialisations

PATCH In review sayli karnik 2 participants 2 messages Mar 10, 2017 – Mar 12, 2017

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

PATCH 1/1 staging: media: mt9m114: Use true/false instead of 1/0 for bool initialisations

Bool initializations should use true and false instead of 1 and 0. Detected by coccinelle/misc/boolinit.cocci.

---
 drivers/staging/media/atomisp/i2c/mt9m114.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/media/atomisp/i2c/mt9m114.h +3 -3
index a66cbfd..5e7d79d 100644
@@ -349,7 +349,7 @@ static struct mt9m114_res_struct mt9m114_res[] = {
 	.width	= 1296,
 	.height = 736,
 	.fps	= 30,
-	.used	= 0,
+	.used	= false,
 	.regs	= NULL,
 	.skip_frames = 1,
 
@@ -365,7 +365,7 @@ static struct mt9m114_res_struct mt9m114_res[] = {
 	.width	= 1296,
 	.height = 864,
 	.fps	= 30,
-	.used	= 0,
+	.used	= false,
 	.regs	= NULL,
 	.skip_frames = 1,
 
@@ -381,7 +381,7 @@ static struct mt9m114_res_struct mt9m114_res[] = {
 	.width	= 1296,
 	.height	= 976,
 	.fps	= 30,
-	.used	= 0,
+	.used	= false,
 	.regs	= NULL,
 	.skip_frames = 1,
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 7 lines · sayli karnik

Bool initializations should use true and false instead of 1 and 0. Detected by coccinelle/misc/boolinit.cocci.

---
 drivers/staging/media/atomisp/i2c/mt9m114.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

You send two different patches, with identical subject lines :(

Please fix up and resend them with unique ones, as a series.

thanks,

greg k-h