projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c4115
)
thermal: Fix test of unsigned in thermal_cooling_device_cur_state_store()
author
Roel Kluin
<roel.kluin@gmail.com>
Tue, 15 Dec 2009 21:46:50 +0000
(22:46 +0100)
committer
Len Brown
<len.brown@intel.com>
Wed, 16 Dec 2009 05:07:21 +0000
(
00:07
-0500)
state is unsigned long so the test did not work.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/thermal/thermal_sys.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/thermal_sys.c
b/drivers/thermal/thermal_sys.c
index 6f8d8f971212f39f0a86b2ac424433bf201f424b..800e0c56cc837f8d44fc150949a05134288b5d50 100644
(file)
--- a/
drivers/thermal/thermal_sys.c
+++ b/
drivers/thermal/thermal_sys.c
@@
-374,7
+374,7
@@
thermal_cooling_device_cur_state_store(struct device *dev,
if (!sscanf(buf, "%ld\n", &state))
return -EINVAL;
- if (state < 0)
+ if (
(long)
state < 0)
return -EINVAL;
result = cdev->ops->set_cur_state(cdev, state);