Skip to content

Commit 59d894a

Browse files
Dan Carpenterrafaeljw
authored andcommitted
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>
1 parent 32abd25 commit 59d894a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/thermal_sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ trip_point_hyst_store(struct device *dev, struct device_attribute *attr,
181181

182182
mutex_unlock(&tz->lock);
183183

184-
return ret ? ret : count;
184+
return count;
185185
}
186186

187187
static ssize_t

0 commit comments

Comments
 (0)