projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7d1315
)
clk: Remove impossible if condition in clk_core_get_phase()
author
Stephen Boyd
<sboyd@codeaurora.org>
Thu, 30 Apr 2015 21:21:56 +0000
(14:21 -0700)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Thu, 30 Apr 2015 23:28:37 +0000
(16:28 -0700)
This condition can't ever be true because this function is static
and it's always called with a non-NULL pointer.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 8d36100c00ce4eb8d0685693542f70c370927196..3e58b74530767c1530d819c4b8549ff3eeb618e1 100644
(file)
--- a/
drivers/clk/clk.c
+++ b/
drivers/clk/clk.c
@@
-2182,16
+2182,12
@@
EXPORT_SYMBOL_GPL(clk_set_phase);
static int clk_core_get_phase(struct clk_core *core)
{
- int ret = 0;
-
- if (!core)
- goto out;
+ int ret;
clk_prepare_lock();
ret = core->phase;
clk_prepare_unlock();
-out:
return ret;
}
EXPORT_SYMBOL_GPL(clk_get_phase);