projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2332980
)
cpufreq: maple: Remove redundant code from maple_cpufreq_init()
author
Viresh Kumar
<viresh.kumar@linaro.org>
Mon, 8 Apr 2019 10:16:10 +0000
(15:46 +0530)
committer
Viresh 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
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/maple-cpufreq.c
b/drivers/cpufreq/maple-cpufreq.c
index a05f1342ec0289256addad7e8807c1e98b44bbc5..a94355723ef85780d347126b0d41bb70b0380446 100644
(file)
--- 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);