Commit 59d894a0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Rafael J. Wysocki

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: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 32abd250
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment