thermal: core: remove unnecessary check in trip_point_hyst_store()

This code was shuffled around a bit recently.  We no longer need to
check the value of "ret" because we know it's zero.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Dan Carpenter 2024-03-06 08:31:12 +03:00 committed by Rafael J. Wysocki
parent 32abd25087
commit 59d894a078

View File

@ -181,7 +181,7 @@ trip_point_hyst_store(struct device *dev, struct device_attribute *attr,
mutex_unlock(&tz->lock);
return ret ? ret : count;
return count;
}
static ssize_t