cpufreq: two minor cleanups
PATCH 1/1 cpufreq: two minor cleanups
Hi Dave,
Here are two possible cleanups in cpufreq.c:
* ret has no need to be unsigned in cpufreq_driver_target()
* ret has no need to be initialized in __cpufreq_governor()
Thanks.
Signed-off-by Jean Delvare <[email protected]>
drivers/cpufreq/cpufreq.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/cpufreq/cpufreq.c +2 -2
@@ -1130,7 +1130,7 @@unsigned int target_freq, unsigned int relation) { -unsigned int ret; + int ret; policy =cpufreq_cpu_get (policy->cpu);if (!policy)
@@ -1151,7 +1151,7 @@static int __cpufreq_governor (struct cpufreq_policy *policy,unsigned int event) { -int ret = -EINVAL ; +int ret;if (!try_module_get (policy->governor->owner))return -EINVAL ;
Signature · 1 line
Jean Delvare