summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-04-08 15:46:10 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2019-04-08 16:15:10 +0530
commitc1d1090c3c7674c965552e22a65b29423aa4f090 (patch)
tree7320cd58ed269ba06cb2cc4efde9bba43ede41ee /drivers/cpufreq
parent233298032803f2802fe99892d0de4ab653bfece4 (diff)
downloadblackbird-op-linux-c1d1090c3c7674c965552e22a65b29423aa4f090.tar.gz
blackbird-op-linux-c1d1090c3c7674c965552e22a65b29423aa4f090.zip
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 <viresh.kumar@linaro.org> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/maple-cpufreq.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c
index a05f1342ec02..a94355723ef8 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);
OpenPOWER on IntegriCloud