projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c8326d
)
clk: Simplify debugfs registration
author
Stephen Boyd
<sboyd@codeaurora.org>
Thu, 4 Jan 2018 00:44:37 +0000
(16:44 -0800)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Wed, 10 Jan 2018 21:13:23 +0000
(13:13 -0800)
We don't need a goto here. Drop it.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index c8ea2dd32251d1a1db4342c75801b7b40b3ce4a0..0a52357ded5c16bfaf35a28f4aed1b797053d54c 100644
(file)
--- 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;