Skip to content

Commit

Permalink
Here are two possible cleanups in cpufreq.c:
Browse files Browse the repository at this point in the history
* 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 <khali@linux-fr.org>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Dave Jones committed Jul 28, 2005
1 parent 841e40b commit cc993ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit cc993ca

Please sign in to comment.