summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2015-01-23 12:03:28 +0100
committerMichael Turquette <mturquette@linaro.org>2015-01-28 10:40:18 -0800
commitc440525cb96780c369879e15083c29a479eb0598 (patch)
tree07663293f86905345c033dc0988e21866b1b9458 /drivers/clk
parentc88b2b662a05810399da3e5494231bd79bad56b6 (diff)
downloadlinux-c440525cb96780c369879e15083c29a479eb0598.tar.bz2
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: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index aa8a9d2d0b73..05986e389bf8 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -428,9 +428,6 @@ static void clk_unprepare_unused_subtree(struct clk *clk)
{
struct clk *child;
- if (!clk)
- return;
-
hlist_for_each_entry(child, &clk->children, child_node)
clk_unprepare_unused_subtree(child);
@@ -454,9 +451,6 @@ static void clk_disable_unused_subtree(struct clk *clk)
struct clk *child;
unsigned long flags;
- if (!clk)
- goto out;
-
hlist_for_each_entry(child, &clk->children, child_node)
clk_disable_unused_subtree(child);
@@ -482,9 +476,6 @@ static void clk_disable_unused_subtree(struct clk *clk)
unlock_out:
clk_enable_unlock(flags);
-
-out:
- return;
}
static bool clk_ignore_unused;