diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2018-01-04 01:44:37 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2018-01-10 22:13:23 +0100 |
commit | db3188fadfe6af73d2485131a6975c032306e1ea (patch) | |
tree | 44ccc6f18204b8e2dc116b6d12983016fcbf1ba5 /drivers/clk/clk.c | |
parent | clk: Fix debugfs_create_*() usage (diff) | |
download | linux-db3188fadfe6af73d2485131a6975c032306e1ea.tar.xz linux-db3188fadfe6af73d2485131a6975c032306e1ea.zip |
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/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 8 |
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; |