Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200422071826.49038-1-yanaijie@huawei.com

authored by

Jason Yan and committed by
Sam Ravnborg
13e9bd05 0cdea445

+5 -5
+5 -5
drivers/video/fbdev/i810/i810_main.c
··· 1966 1966 1967 1967 while ((this_opt = strsep(&options, ",")) != NULL) { 1968 1968 if (!strncmp(this_opt, "mtrr", 4)) 1969 - mtrr = 1; 1969 + mtrr = true; 1970 1970 else if (!strncmp(this_opt, "accel", 5)) 1971 - accel = 1; 1971 + accel = true; 1972 1972 else if (!strncmp(this_opt, "extvga", 6)) 1973 - extvga = 1; 1973 + extvga = true; 1974 1974 else if (!strncmp(this_opt, "sync", 4)) 1975 - sync = 1; 1975 + sync = true; 1976 1976 else if (!strncmp(this_opt, "vram:", 5)) 1977 1977 vram = (simple_strtoul(this_opt+5, NULL, 0)); 1978 1978 else if (!strncmp(this_opt, "voffset:", 8)) ··· 1998 1998 else if (!strncmp(this_opt, "vsync2:", 7)) 1999 1999 vsync2 = simple_strtoul(this_opt+7, NULL, 0); 2000 2000 else if (!strncmp(this_opt, "dcolor", 6)) 2001 - dcolor = 1; 2001 + dcolor = true; 2002 2002 else if (!strncmp(this_opt, "ddc3", 4)) 2003 2003 ddc3 = true; 2004 2004 else