aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-03-06 08:31:12 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-03-06 13:26:25 +0100
commit59d894a078cbed0335bb280dca411c91f686a9fd (patch)
tree99930df1f2c777f346a1602dc412b5f243ffc9fd /drivers/thermal
parent32abd250879a272fd96da48db59fde5ef71946cf (diff)
downloadlinux-59d894a078cbed0335bb280dca411c91f686a9fd.tar.gz
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>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index 7c02d35384ceb..5b533fa40437c 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