[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1406085478-19221-1-git-send-email-zhangwm@marvell.com>
Date: Wed, 23 Jul 2014 11:17:58 +0800
From: Neil Zhang <zhangwm@...vell.com>
To: <linux-kernel@...r.kernel.org>
CC: <akpm@...ux-foundation.org>, Neil Zhang <zhangwm@...vell.com>
Subject: [PATCH] kernel: printk: fix bool assignements
Fix coccinelle warnings.
Signed-off-by: Neil Zhang <zhangwm@...vell.com>
---
kernel/printk/printk.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 13e839d..89894e5 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -881,7 +881,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;
@@ -948,7 +948,7 @@ static inline void boot_delay_msec(int level)
#endif
#if defined(CONFIG_PRINTK_TIME)
-static bool printk_time = 1;
+static bool printk_time = true;
#else
static bool printk_time;
#endif
@@ -1959,12 +1959,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);
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists