Commit 1f3e1983 authored by Stephen Boyd's avatar Stephen Boyd

clk: Remove impossible if condition in clk_core_get_phase()

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: default avatarStephen Boyd <sboyd@codeaurora.org>
parent d7d13151
...@@ -2182,16 +2182,12 @@ EXPORT_SYMBOL_GPL(clk_set_phase); ...@@ -2182,16 +2182,12 @@ EXPORT_SYMBOL_GPL(clk_set_phase);
static int clk_core_get_phase(struct clk_core *core) static int clk_core_get_phase(struct clk_core *core)
{ {
int ret = 0; int ret;
if (!core)
goto out;
clk_prepare_lock(); clk_prepare_lock();
ret = core->phase; ret = core->phase;
clk_prepare_unlock(); clk_prepare_unlock();
out:
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(clk_get_phase); EXPORT_SYMBOL_GPL(clk_get_phase);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment