cpufreq: maple: Remove redundant code from maple_cpufreq_init()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 8 Apr 2019 10:16:10 +0000 (15:46 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 8 Apr 2019 10:45:10 +0000 (16:15 +0530)
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>
drivers/cpufreq/maple-cpufreq.c

index a05f1342ec0289256addad7e8807c1e98b44bbc5..a94355723ef85780d347126b0d41bb70b0380446 100644 (file)
@@ -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);