The leftover out_release_rwsem label in cpufreq_add_dev() is not
necessary any more and confusing, so drop it.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
static int cpufreq_add_dev(struct device *dev, struct subsys_interface *sif)
{
unsigned int j, cpu = dev->id;
- int ret = -ENOMEM;
+ int ret;
struct cpufreq_policy *policy;
unsigned long flags;
bool recover_policy;
recover_policy = false;
policy = cpufreq_policy_alloc(dev);
if (!policy)
- goto out_release_rwsem;
+ return -ENOMEM;
}
cpumask_copy(policy->cpus, cpumask_of(cpu));
cpufreq_driver->exit(policy);
out_free_policy:
cpufreq_policy_free(policy, recover_policy);
-out_release_rwsem:
return ret;
}