Commit 13e9bd05 authored by Jason Yan's avatar Jason Yan Committed by Sam Ravnborg
Browse files

video: fbdev: i810: use true,false for bool variables



Fix the following coccicheck warning:

drivers/video/fbdev/i810/i810_main.c:1969:3-7: WARNING: Assignment of
0/1 to bool variable
drivers/video/fbdev/i810/i810_main.c:1971:3-8: WARNING: Assignment of
0/1 to bool variable
drivers/video/fbdev/i810/i810_main.c:1973:3-9: WARNING: Assignment of
0/1 to bool variable
drivers/video/fbdev/i810/i810_main.c:1975:3-7: WARNING: Assignment of
0/1 to bool variable
drivers/video/fbdev/i810/i810_main.c:2001:3-9: WARNING: Assignment of
0/1 to bool variable

Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200422071826.49038-1-yanaijie@huawei.com
parent 0cdea445
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -1966,13 +1966,13 @@ static int i810fb_setup(char *options)
	
	
	while ((this_opt = strsep(&options, ",")) != NULL) {
	while ((this_opt = strsep(&options, ",")) != NULL) {
		if (!strncmp(this_opt, "mtrr", 4))
		if (!strncmp(this_opt, "mtrr", 4))
			mtrr = 1;
			mtrr = true;
		else if (!strncmp(this_opt, "accel", 5))
		else if (!strncmp(this_opt, "accel", 5))
			accel = 1;
			accel = true;
		else if (!strncmp(this_opt, "extvga", 6))
		else if (!strncmp(this_opt, "extvga", 6))
			extvga = 1;
			extvga = true;
		else if (!strncmp(this_opt, "sync", 4))
		else if (!strncmp(this_opt, "sync", 4))
			sync = 1;
			sync = true;
		else if (!strncmp(this_opt, "vram:", 5))
		else if (!strncmp(this_opt, "vram:", 5))
			vram = (simple_strtoul(this_opt+5, NULL, 0));
			vram = (simple_strtoul(this_opt+5, NULL, 0));
		else if (!strncmp(this_opt, "voffset:", 8))
		else if (!strncmp(this_opt, "voffset:", 8))
@@ -1998,7 +1998,7 @@ static int i810fb_setup(char *options)
		else if (!strncmp(this_opt, "vsync2:", 7))
		else if (!strncmp(this_opt, "vsync2:", 7))
			vsync2 = simple_strtoul(this_opt+7, NULL, 0);
			vsync2 = simple_strtoul(this_opt+7, NULL, 0);
		else if (!strncmp(this_opt, "dcolor", 6))
		else if (!strncmp(this_opt, "dcolor", 6))
			dcolor = 1;
			dcolor = true;
		else if (!strncmp(this_opt, "ddc3", 4))
		else if (!strncmp(this_opt, "ddc3", 4))
			ddc3 = true;
			ddc3 = true;
		else
		else