Commit db3188fa authored by Stephen Boyd's avatar Stephen Boyd

clk: Simplify debugfs registration

We don't need a goto here. Drop it.
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 4c8326d5
......@@ -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;
if (inited)
ret = clk_debug_create_one(core, rootdir);
unlock:
mutex_unlock(&clk_debug_lock);
return ret;
......
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