Skip to content

Commit

Permalink
fbdev: aty: use true, false for bool variables in atyfb_base.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jason Yan authored and Sam Ravnborg committed May 6, 2020
1 parent dbc7ece commit d163a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d163a95

Please sign in to comment.