diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-04-30 23:21:56 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-05-01 01:28:37 +0200 |
commit | 1f3e1983429d31ceada9a09197d79445c92a2901 (patch) | |
tree | a507b58bc76fff836ec1cddf00223cef8fc5bf17 /drivers/clk/clk.c | |
parent | clk: Drop unnecessary OOM prints (diff) | |
download | linux-1f3e1983429d31ceada9a09197d79445c92a2901.tar.xz linux-1f3e1983429d31ceada9a09197d79445c92a2901.zip |
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: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 8d36100c00ce..3e58b7453076 100644 --- 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); |