Commit 678ab4ca authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds

[PATCH] acpi proc: error handling

Propagate the software_suspend() return value.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fa7f7d64
...@@ -70,7 +70,7 @@ acpi_system_write_sleep ( ...@@ -70,7 +70,7 @@ acpi_system_write_sleep (
state = simple_strtoul(str, NULL, 0); state = simple_strtoul(str, NULL, 0);
#ifdef CONFIG_SOFTWARE_SUSPEND #ifdef CONFIG_SOFTWARE_SUSPEND
if (state == 4) { if (state == 4) {
software_suspend(); error = software_suspend();
goto Done; goto Done;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment