git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
thermal: Fix test of unsigned in thermal_cooling_device_cur_state_store()
[pandora-kernel.git]
/
drivers
/
thermal
/
thermal_sys.c
diff --git
a/drivers/thermal/thermal_sys.c
b/drivers/thermal/thermal_sys.c
index
6f8d8f9
..
800e0c5
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);