projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32abd25
)
thermal: core: remove unnecessary check in trip_point_hyst_store()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Wed, 6 Mar 2024 05:31:12 +0000
(08:31 +0300)
committer
Rafael 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
patch
|
blob
|
history
diff --git
a/drivers/thermal/thermal_sysfs.c
b/drivers/thermal/thermal_sysfs.c
index 7c02d35384cebcfd32ea4ab17f8123ebe91d8823..5b533fa40437c35f68ad80c7cc858131a96540f2 100644
(file)
--- 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