]> git.baikalelectronics.ru Git - kernel.git/commitdiff
video: udlfb: use true,false for bool variables
authorJason Yan <yanaijie@huawei.com>
Wed, 22 Apr 2020 07:18:36 +0000 (15:18 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 6 May 2020 17:30:25 +0000 (19:30 +0200)
Fix the following coccicheck warning:

drivers/video/fbdev/udlfb.c:67:12-19: WARNING: Assignment of 0/1 to bool
variable
drivers/video/fbdev/udlfb.c:68:12-20: WARNING: Assignment of 0/1 to bool
variable
drivers/video/fbdev/udlfb.c:69:12-18: 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/20200422071836.49123-1-yanaijie@huawei.com
drivers/video/fbdev/udlfb.c

index 07905d385949ec3321df82c0b410ff9b75aa4fac..5b014b479f831b8468886ceacb1c1d70cae165fb 100644 (file)
@@ -64,9 +64,9 @@ static const struct usb_device_id id_table[] = {
 MODULE_DEVICE_TABLE(usb, id_table);
 
 /* module options */
-static bool console = 1; /* Allow fbcon to open framebuffer */
-static bool fb_defio = 1;  /* Detect mmap writes using page faults */
-static bool shadow = 1; /* Optionally disable shadow framebuffer */
+static bool console = true; /* Allow fbcon to open framebuffer */
+static bool fb_defio = true;  /* Detect mmap writes using page faults */
+static bool shadow = true; /* Optionally disable shadow framebuffer */
 static int pixel_limit; /* Optionally force a pixel resolution limit */
 
 struct dlfb_deferred_free {