diff options
Diffstat (limited to 'kernel/power')
-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 54ec071de337..428f8a034e96 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
@@ -422,7 +422,7 @@ static ssize_t autosleep_store(struct kobject *kobj, | |||
422 | int error; | 422 | int error; |
423 | 423 | ||
424 | if (state == PM_SUSPEND_ON | 424 | if (state == PM_SUSPEND_ON |
425 | && !(strncmp(buf, "off", 3) && strncmp(buf, "off\n", 4))) | 425 | && strcmp(buf, "off") && strcmp(buf, "off\n")) |
426 | return -EINVAL; | 426 | return -EINVAL; |
427 | 427 | ||
428 | error = pm_autosleep_set_state(state); | 428 | error = pm_autosleep_set_state(state); |