Merge branch 'misc-2.6.33' into release
[linux-2.6.git] / drivers / thermal / thermal_sys.c
index 3bc72ea..5066de5 100644 (file)
@@ -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);