Skip to content

Commit

Permalink
kernel/printk/printk.c: fix bool assignements
Browse files Browse the repository at this point in the history
Fix coccinelle warnings.

Signed-off-by: Neil Zhang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Neil Zhang authored and torvalds committed Aug 7, 2014
1 parent 5874af2 commit d25d9fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/printk/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d25d9fe

Please sign in to comment.