diff options
author | Len Brown <len.brown@intel.com> | 2009-12-16 14:22:32 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-16 14:22:32 -0500 |
commit | aa96ce0af8385415a3450bc13e6254a4d6b4a888 (patch) | |
tree | 5d255bc416d469b4d2110910586c43fc6474d51e /drivers/thermal | |
parent | 2900681b25d5a1a1a7b39ab66da3b8c6b1b0b7ad (diff) | |
parent | bf8b4542f92c4d8222941b1cab055fa350ab2fb4 (diff) | |
download | kernel-crypto-aa96ce0af8385415a3450bc13e6254a4d6b4a888.tar.gz kernel-crypto-aa96ce0af8385415a3450bc13e6254a4d6b4a888.tar.xz kernel-crypto-aa96ce0af8385415a3450bc13e6254a4d6b4a888.zip |
Merge branch 'misc-2.6.33' into release
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/thermal_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 3bc72ea57e0..5066de5cfc0 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c @@ -377,7 +377,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); |