summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2018-01-03 16:44:37 -0800
committerStephen Boyd <sboyd@codeaurora.org>2018-01-10 13:13:23 -0800
commitdb3188fadfe6af73d2485131a6975c032306e1ea (patch)
tree44ccc6f18204b8e2dc116b6d12983016fcbf1ba5 /drivers/clk
parent4c8326d5ebb0de3191e98980c80ab644026728d0 (diff)
downloadlinux-db3188fadfe6af73d2485131a6975c032306e1ea.tar.bz2
clk: Simplify debugfs registration
We don't need a goto here. Drop it. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index c8ea2dd32251..0a52357ded5c 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2723,12 +2723,8 @@ static int clk_debug_register(struct clk_core *core)
mutex_lock(&clk_debug_lock);
hlist_add_head(&core->debug_node, &clk_debug_list);
-
- if (!inited)
- goto unlock;
-
- ret = clk_debug_create_one(core, rootdir);
-unlock:
+ if (inited)
+ ret = clk_debug_create_one(core, rootdir);
mutex_unlock(&clk_debug_lock);
return ret;