aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/suspend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 595a3dd56a8a..fdd4263b995d 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -319,7 +319,7 @@ int enter_state(suspend_state_t state)
319int pm_suspend(suspend_state_t state) 319int pm_suspend(suspend_state_t state)
320{ 320{
321 int ret; 321 int ret;
322 if (state > PM_SUSPEND_ON && state <= PM_SUSPEND_MAX) { 322 if (state > PM_SUSPEND_ON && state < PM_SUSPEND_MAX) {
323 ret = enter_state(state); 323 ret = enter_state(state);
324 if (ret) { 324 if (ret) {
325 suspend_stats.fail++; 325 suspend_stats.fail++;