OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbc7ece
)
fbdev: aty: use true, false for bool variables in atyfb_base.c
author
Jason Yan
<yanaijie@huawei.com>
Wed, 22 Apr 2020 07:18:54 +0000
(15:18 +0800)
committer
Sam Ravnborg
<sam@ravnborg.org>
Wed, 6 May 2020 17:32:15 +0000
(19:32 +0200)
Fix the following coccicheck warning:
drivers/video/fbdev/aty/atyfb_base.c:3822:3-10: WARNING: Assignment of
0/1 to bool variable
drivers/video/fbdev/aty/atyfb_base.c:3824: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/20200422071854.513-1-yanaijie@huawei.com
drivers/video/fbdev/aty/atyfb_base.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/aty/atyfb_base.c
b/drivers/video/fbdev/aty/atyfb_base.c
index
49d1928
..
b0ac895
100644
(file)
--- a/
drivers/video/fbdev/aty/atyfb_base.c
+++ b/
drivers/video/fbdev/aty/atyfb_base.c
@@
-3819,9
+3819,9
@@
static int __init atyfb_setup(char *options)
while ((this_opt = strsep(&options, ",")) != NULL) {
if (!strncmp(this_opt, "noaccel", 7)) {
- noaccel =
1
;
+ noaccel =
true
;
} else if (!strncmp(this_opt, "nomtrr", 6)) {
- nomtrr =
1
;
+ nomtrr =
true
;
} else if (!strncmp(this_opt, "vram:", 5))
vram = simple_strtoul(this_opt + 5, NULL, 0);
else if (!strncmp(this_opt, "pll:", 4))