kernel/printk/printk.c: fix bool assignements
authorNeil Zhang <zhangwm@marvell.com>
Wed, 6 Aug 2014 23:09:12 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:24 +0000 (18:01 -0700)
Fix coccinelle warnings.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk/printk.c

index df202fe0974a4c851f7cc9a557fc1c3e3f3ba506..de1a6bb6861db5e92f0884e2b733cb5b6988679e 100644 (file)
@@ -919,7 +919,7 @@ static bool __read_mostly ignore_loglevel;
 
 static int __init ignore_loglevel_setup(char *str)
 {
-       ignore_loglevel = 1;
+       ignore_loglevel = true;
        pr_info("debug: ignoring loglevel setting.\n");
 
        return 0;
@@ -2005,12 +2005,12 @@ int update_console_cmdline(char *name, int idx, char *name_new, int idx_new, cha
        return -1;
 }
 
-bool console_suspend_enabled = 1;
+bool console_suspend_enabled = true;
 EXPORT_SYMBOL(console_suspend_enabled);
 
 static int __init console_suspend_disable(char *str)
 {
-       console_suspend_enabled = 0;
+       console_suspend_enabled = false;
        return 1;
 }
 __setup("no_console_suspend", console_suspend_disable);