From: Dan Carpenter Date: Wed, 6 Mar 2024 05:31:12 +0000 (+0300) Subject: thermal: core: remove unnecessary check in trip_point_hyst_store() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=59d894a078cbed0335bb280dca411c91f686a9fd;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c index 7c02d35384ce..5b533fa40437 100644 --- a/drivers/thermal/thermal_sysfs.c +++ b/drivers/thermal/thermal_sysfs.c @@ -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