Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298043
b: refs/heads/master
c: f1f0e2a
h: refs/heads/master
i:
  298041: a8640a5
  298039: d28dfff
v: v3
  • Loading branch information
Amit Daniel Kachhap authored and Len Brown committed Mar 22, 2012
1 parent 52dcbd5 commit c55d9ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 03ee62f0b9919535a1be02f72fe8153255a7fda0
refs/heads/master: f1f0e2ac596f531c15b7b09ebeb8cfd011fffbd2
4 changes: 2 additions & 2 deletions trunk/drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ mode_store(struct device *dev, struct device_attribute *attr,
if (!tz->ops->set_mode)
return -EPERM;

if (!strncmp(buf, "enabled", sizeof("enabled")))
if (!strncmp(buf, "enabled", sizeof("enabled") - 1))
result = tz->ops->set_mode(tz, THERMAL_DEVICE_ENABLED);
else if (!strncmp(buf, "disabled", sizeof("disabled")))
else if (!strncmp(buf, "disabled", sizeof("disabled") - 1))
result = tz->ops->set_mode(tz, THERMAL_DEVICE_DISABLED);
else
result = -EINVAL;
Expand Down

0 comments on commit c55d9ea

Please sign in to comment.