Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305839
b: refs/heads/master
c: 040e5bf
h: refs/heads/master
i:
  305837: d88948a
  305835: 0b7ae74
  305831: 688645d
  305823: c686062
v: v3
  • Loading branch information
Arve Hjønnevåg authored and Rafael J. Wysocki committed May 5, 2012
1 parent 48b5726 commit 6833659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d7e30d98939a0340022ccd49325a3d70f7e0238
refs/heads/master: 040e5bf65e1ee66266bc314c5965518a7c21ff36
2 changes: 1 addition & 1 deletion trunk/kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static ssize_t autosleep_store(struct kobject *kobj,
int error;

if (state == PM_SUSPEND_ON
&& !(strncmp(buf, "off", 3) && strncmp(buf, "off\n", 4)))
&& strcmp(buf, "off") && strcmp(buf, "off\n"))
return -EINVAL;

error = pm_autosleep_set_state(state);
Expand Down

0 comments on commit 6833659

Please sign in to comment.