Commit fafd5e8a authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

cpufreq: governor: Drop pointless goto from cpufreq_governor_init()

It is silly to jump around "return 0", so don't do that.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 686cc637
......@@ -395,12 +395,11 @@ static int cpufreq_governor_init(struct cpufreq_policy *policy)
ret = sysfs_create_group(get_governor_parent_kobj(policy),
get_sysfs_attr(gov));
if (ret)
goto reset_gdbs_data;
if (!ret)
return 0;
reset_gdbs_data:
/* Failure, so roll back. */
policy->governor_data = NULL;
if (!have_governor_per_policy())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment