Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87bb4017 authored by sayli karnik's avatar sayli karnik Committed by Greg Kroah-Hartman
Browse files

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.

Signed-off-by: default avatarsayli karnik <karniksayli1995@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0adbfd46
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -922,10 +922,10 @@ static int mt9m114_set_fmt(struct v4l2_subdev *sd,
		for (index = 0; index < N_RES; index++) {
		for (index = 0; index < N_RES; index++) {
			if ((width == mt9m114_res[index].width) &&
			if ((width == mt9m114_res[index].width) &&
			    (height == mt9m114_res[index].height)) {
			    (height == mt9m114_res[index].height)) {
				mt9m114_res[index].used = 1;
				mt9m114_res[index].used = true;
				continue;
				continue;
			}
			}
			mt9m114_res[index].used = 0;
			mt9m114_res[index].used = false;
		}
		}
	}
	}
	ret = mt9m114_get_intg_factor(c, mt9m114_info,
	ret = mt9m114_get_intg_factor(c, mt9m114_info,
+3 −3
Original line number Original line Diff line number Diff line
@@ -349,7 +349,7 @@ static struct mt9m114_res_struct mt9m114_res[] = {
	.width	= 1296,
	.width	= 1296,
	.height = 736,
	.height = 736,
	.fps	= 30,
	.fps	= 30,
	.used	= 0,
	.used	= false,
	.regs	= NULL,
	.regs	= NULL,
	.skip_frames = 1,
	.skip_frames = 1,


@@ -365,7 +365,7 @@ static struct mt9m114_res_struct mt9m114_res[] = {
	.width	= 1296,
	.width	= 1296,
	.height = 864,
	.height = 864,
	.fps	= 30,
	.fps	= 30,
	.used	= 0,
	.used	= false,
	.regs	= NULL,
	.regs	= NULL,
	.skip_frames = 1,
	.skip_frames = 1,


@@ -381,7 +381,7 @@ static struct mt9m114_res_struct mt9m114_res[] = {
	.width	= 1296,
	.width	= 1296,
	.height	= 976,
	.height	= 976,
	.fps	= 30,
	.fps	= 30,
	.used	= 0,
	.used	= false,
	.regs	= NULL,
	.regs	= NULL,
	.skip_frames = 1,
	.skip_frames = 1,