提交 db3188fa 编写于 作者: S Stephen Boyd

clk: Simplify debugfs registration

We don't need a goto here. Drop it.
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 4c8326d5
...@@ -2723,12 +2723,8 @@ static int clk_debug_register(struct clk_core *core) ...@@ -2723,12 +2723,8 @@ static int clk_debug_register(struct clk_core *core)
mutex_lock(&clk_debug_lock); mutex_lock(&clk_debug_lock);
hlist_add_head(&core->debug_node, &clk_debug_list); hlist_add_head(&core->debug_node, &clk_debug_list);
if (inited)
if (!inited) ret = clk_debug_create_one(core, rootdir);
goto unlock;
ret = clk_debug_create_one(core, rootdir);
unlock:
mutex_unlock(&clk_debug_lock); mutex_unlock(&clk_debug_lock);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册