Message ID | 167059959175.4906.316857501482540497.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers | show |
Series | [thermal:,thermal/next] thermal/sysfs: remove unnecessary check in trip_point_hyst_show() | expand |
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c index cef860d..d37133a 100644 --- a/drivers/thermal/thermal_sysfs.c +++ b/drivers/thermal/thermal_sysfs.c @@ -226,7 +226,7 @@ trip_point_hyst_show(struct device *dev, struct device_attribute *attr, mutex_unlock(&tz->lock); - return ret ? ret : sprintf(buf, "%d\n", trip.hysteresis); + return sprintf(buf, "%d\n", trip.hysteresis); } static ssize_t