thermal: core: remove unnecessary check in trip_point_hyst_store()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 6 Mar 2024 05:31:12 +0000 (08:31 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Mar 2024 12:26:25 +0000 (13:26 +0100)
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>
drivers/thermal/thermal_sysfs.c

index 7c02d35384cebcfd32ea4ab17f8123ebe91d8823..5b533fa40437c35f68ad80c7cc858131a96540f2 100644 (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