diff options
Diffstat (limited to 'drivers/thermal/thermal_sys.c')
-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 6f8d8f971212..800e0c56cc83 100644 --- 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, | |||
374 | if (!sscanf(buf, "%ld\n", &state)) | 374 | if (!sscanf(buf, "%ld\n", &state)) |
375 | return -EINVAL; | 375 | return -EINVAL; |
376 | 376 | ||
377 | if (state < 0) | 377 | if ((long)state < 0) |
378 | return -EINVAL; | 378 | return -EINVAL; |
379 | 379 | ||
380 | result = cdev->ops->set_cur_state(cdev, state); | 380 | result = cdev->ops->set_cur_state(cdev, state); |