Skip to content

Commit

Permalink
clk: Simplify debugfs registration
Browse files Browse the repository at this point in the history
We don't need a goto here. Drop it.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  • Loading branch information
Stephen Boyd committed Jan 10, 2018
1 parent 4c8326d commit db3188f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db3188f

Please sign in to comment.