From: Viresh Kumar Date: Mon, 8 Apr 2019 10:16:10 +0000 (+0530) Subject: cpufreq: maple: Remove redundant code from maple_cpufreq_init() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c1d1090c3c7674c965552e22a65b29423aa4f090;p=linux.git cpufreq: maple: Remove redundant code from maple_cpufreq_init() The success path and error path both look the same, don't duplicate the code. Signed-off-by: Viresh Kumar Acked-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index a05f1342ec028..a94355723ef85 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c @@ -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);