Message ID | 161109164630.414.10802725734402206447.tip-bot2@tip-bot2 (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | [thermal:,thermal/next] thermal/core: Remove THERMAL_TRIPS_NONE test | expand |
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index a0f0c33..bcc2ea4 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -710,7 +710,7 @@ int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, unsigned long max_state; int result, ret; - if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) + if (trip >= tz->trips || trip < 0) return -EINVAL; list_for_each_entry(pos1, &thermal_tz_list, node) {