]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: media: mt9m114: Use true/false instead of 1/0 for bool initialisations
authorsayli karnik <karniksayli1995@gmail.com>
Sun, 12 Mar 2017 15:55:20 +0000 (21:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Mar 2017 00:00:36 +0000 (08:00 +0800)
Bool initializations should use true and false instead of 1 and 0.
Detected by coccinelle/misc/boolinit.cocci.

Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/i2c/mt9m114.c
drivers/staging/media/atomisp/i2c/mt9m114.h

index f9a00228765f1f534b2df12204b4311f693cf6e8..4ad08d7b95c217f8dabffe865d4916240ea177da 100644 (file)
@@ -922,10 +922,10 @@ static int mt9m114_set_fmt(struct v4l2_subdev *sd,
                for (index = 0; index < N_RES; index++) {
                        if ((width == mt9m114_res[index].width) &&
                            (height == mt9m114_res[index].height)) {
-                               mt9m114_res[index].used = 1;
+                               mt9m114_res[index].used = true;
                                continue;
                        }
-                       mt9m114_res[index].used = 0;
+                       mt9m114_res[index].used = false;
                }
        }
        ret = mt9m114_get_intg_factor(c, mt9m114_info,
index a66cbfd66e86755da6eb25ad14ab522908fb72c8..5e7d79d2e01bff2c64c1befee57b19fc73fef902 100644 (file)
@@ -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,