Skip to content

Commit

Permalink
cpufreq: maple: Remove redundant code from maple_cpufreq_init()
Browse files Browse the repository at this point in the history
The success path and error path both look the same, don't duplicate the
code.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Viresh Kumar committed Apr 8, 2019
1 parent 2332980 commit c1d1090
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/cpufreq/maple-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@ static int __init maple_cpufreq_init(void)

rc = cpufreq_register_driver(&maple_cpufreq_driver);

of_node_put(cpunode);

return rc;

bail_noprops:
of_node_put(cpunode);

Expand Down

0 comments on commit c1d1090

Please sign in to comment.