Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
Rafael J. Wysocki
59d894a0 32abd250

+1 -1
+1 -1
drivers/thermal/thermal_sysfs.c
··· 181 181 182 182 mutex_unlock(&tz->lock); 183 183 184 - return ret ? ret : count; 184 + return count; 185 185 } 186 186 187 187 static ssize_t