Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db3188fa authored by Stephen Boyd's avatar Stephen Boyd
Browse files

clk: Simplify debugfs registration



We don't need a goto here. Drop it.

Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 4c8326d5
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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;