diff options
author | Neil Zhang <zhangwm@marvell.com> | 2014-08-06 19:09:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:24 -0400 |
commit | d25d9feced6c94398979a035868f03e8e8d49ce8 (patch) | |
tree | d92d7af528897da82450996460125df7b08507ce /kernel | |
parent | 5874af2003b1aaaa053128d655710140e3187226 (diff) |
kernel/printk/printk.c: fix bool assignements
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/printk/printk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index df202fe0974a..de1a6bb6861d 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c | |||
@@ -919,7 +919,7 @@ static bool __read_mostly ignore_loglevel; | |||
919 | 919 | ||
920 | static int __init ignore_loglevel_setup(char *str) | 920 | static int __init ignore_loglevel_setup(char *str) |
921 | { | 921 | { |
922 | ignore_loglevel = 1; | 922 | ignore_loglevel = true; |
923 | pr_info("debug: ignoring loglevel setting.\n"); | 923 | pr_info("debug: ignoring loglevel setting.\n"); |
924 | 924 | ||
925 | return 0; | 925 | return 0; |
@@ -2005,12 +2005,12 @@ int update_console_cmdline(char *name, int idx, char *name_new, int idx_new, cha | |||
2005 | return -1; | 2005 | return -1; |
2006 | } | 2006 | } |
2007 | 2007 | ||
2008 | bool console_suspend_enabled = 1; | 2008 | bool console_suspend_enabled = true; |
2009 | EXPORT_SYMBOL(console_suspend_enabled); | 2009 | EXPORT_SYMBOL(console_suspend_enabled); |
2010 | 2010 | ||
2011 | static int __init console_suspend_disable(char *str) | 2011 | static int __init console_suspend_disable(char *str) |
2012 | { | 2012 | { |
2013 | console_suspend_enabled = 0; | 2013 | console_suspend_enabled = false; |
2014 | return 1; | 2014 | return 1; |
2015 | } | 2015 | } |
2016 | __setup("no_console_suspend", console_suspend_disable); | 2016 | __setup("no_console_suspend", console_suspend_disable); |