Skip to content

Commit

Permalink
thermal: core: remove unnecessary check in trip_point_hyst_store()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Rafael J. Wysocki committed Mar 6, 2024
1 parent 32abd25 commit 59d894a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/thermal_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59d894a

Please sign in to comment.