From: Dave Jones Date: Thu, 28 Jul 2005 16:43:56 +0000 (-0700) Subject: Here are two possible cleanups in cpufreq.c: X-Git-Tag: v2.6.13-rc5~70^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc993cab0239cb07af329d2e18faac7888821075;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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() Signed-off-by: Jean Delvare Signed-off-by: Dave Jones --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 7a7859d..10b0149 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1130,7 +1130,7 @@ int cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) { - unsigned int ret; + int ret; policy = cpufreq_cpu_get(policy->cpu); if (!policy) @@ -1151,7 +1151,7 @@ EXPORT_SYMBOL_GPL(cpufreq_driver_target); 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;