From c55d9ea80023c7c159d634c7cf90fc11fc8d62f8 Mon Sep 17 00:00:00 2001 From: Amit Daniel Kachhap Date: Wed, 21 Mar 2012 16:40:01 +0530 Subject: [PATCH] --- yaml --- r: 298043 b: refs/heads/master c: f1f0e2ac596f531c15b7b09ebeb8cfd011fffbd2 h: refs/heads/master i: 298041: a8640a5c38212362712c778904fc8d65aef9a327 298039: d28dfff1c6879ee63cd4a539838f40f771ebc58c v: v3 --- [refs] | 2 +- trunk/drivers/thermal/thermal_sys.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 33107db8ed9d..44f1ccf9d662 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 03ee62f0b9919535a1be02f72fe8153255a7fda0 +refs/heads/master: f1f0e2ac596f531c15b7b09ebeb8cfd011fffbd2 diff --git a/trunk/drivers/thermal/thermal_sys.c b/trunk/drivers/thermal/thermal_sys.c index fab970d9e3e1..022bacb71a7e 100644 --- a/trunk/drivers/thermal/thermal_sys.c +++ b/trunk/drivers/thermal/thermal_sys.c @@ -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;