summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2016-06-14 16:23:22 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-15 01:26:04 +0200
commitca5f2b4c4fb7bb7397317ee2ead83485aa295a3e (patch)
tree8c08c9bbea56cd80a1849d532a938b5e6eae673e /kernel/power
parentPM / Hibernate: Don't let kasan instrument snapshot.c (diff)
downloadlinux-ca5f2b4c4fb7bb7397317ee2ead83485aa295a3e.tar.xz
linux-ca5f2b4c4fb7bb7397317ee2ead83485aa295a3e.zip
PM / sleep: Make pm_prepare_console() return void
Nothing is using its return value so change it to return void. No functionality change. Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/console.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/power/console.c b/kernel/power/console.c
index aba9c545a0e3..0e781798b0b3 100644
--- a/kernel/power/console.c
+++ b/kernel/power/console.c
@@ -126,17 +126,17 @@ out:
return ret;
}
-int pm_prepare_console(void)
+void pm_prepare_console(void)
{
if (!pm_vt_switch())
- return 0;
+ return;
orig_fgconsole = vt_move_to_console(SUSPEND_CONSOLE, 1);
if (orig_fgconsole < 0)
- return 1;
+ return;
orig_kmsg = vt_kmsg_redirect(SUSPEND_CONSOLE);
- return 0;
+ return;
}
void pm_restore_console(void)