diff options
Diffstat (limited to 'kernel/power/main.c')
-rw-r--r-- | kernel/power/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c index 4cdebc972ff2..c7eb4a833db5 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
@@ -190,7 +190,7 @@ int software_suspend(void) | |||
190 | 190 | ||
191 | int pm_suspend(suspend_state_t state) | 191 | int pm_suspend(suspend_state_t state) |
192 | { | 192 | { |
193 | if (state > PM_SUSPEND_ON && state < PM_SUSPEND_MAX) | 193 | if (state > PM_SUSPEND_ON && state <= PM_SUSPEND_MAX) |
194 | return enter_state(state); | 194 | return enter_state(state); |
195 | return -EINVAL; | 195 | return -EINVAL; |
196 | } | 196 | } |