Commit c440525c authored by Tomeu Vizoso's avatar Tomeu Vizoso Committed by Michael Turquette

clk: Remove unneeded NULL checks

As clk_unprepare_unused_subtree and clk_disable_unused_subtree are
always called with a valid struct clk.
Signed-off-by: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarMichael Turquette <mturquette@linaro.org>
parent c88b2b66
...@@ -428,9 +428,6 @@ static void clk_unprepare_unused_subtree(struct clk *clk) ...@@ -428,9 +428,6 @@ static void clk_unprepare_unused_subtree(struct clk *clk)
{ {
struct clk *child; struct clk *child;
if (!clk)
return;
hlist_for_each_entry(child, &clk->children, child_node) hlist_for_each_entry(child, &clk->children, child_node)
clk_unprepare_unused_subtree(child); clk_unprepare_unused_subtree(child);
...@@ -454,9 +451,6 @@ static void clk_disable_unused_subtree(struct clk *clk) ...@@ -454,9 +451,6 @@ static void clk_disable_unused_subtree(struct clk *clk)
struct clk *child; struct clk *child;
unsigned long flags; unsigned long flags;
if (!clk)
goto out;
hlist_for_each_entry(child, &clk->children, child_node) hlist_for_each_entry(child, &clk->children, child_node)
clk_disable_unused_subtree(child); clk_disable_unused_subtree(child);
...@@ -482,9 +476,6 @@ static void clk_disable_unused_subtree(struct clk *clk) ...@@ -482,9 +476,6 @@ static void clk_disable_unused_subtree(struct clk *clk)
unlock_out: unlock_out:
clk_enable_unlock(flags); clk_enable_unlock(flags);
out:
return;
} }
static bool clk_ignore_unused; static bool clk_ignore_unused;
......
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