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

Commit d41bd923 authored by Fengguang Wu's avatar Fengguang Wu Committed by Stephen Boyd
Browse files

clk: qcom: fix simple_return.cocci warnings



drivers/clk/qcom/clk-pll.c:74:1-4: WARNING: end returns can be simpified

 Simplify a trivial if-return sequence.  Possibly combine with a
 preceding function call.
Generated by: scripts/coccinelle/misc/simple_return.cocci

Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent b3261d76
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -71,12 +71,8 @@ static int clk_pll_enable(struct clk_hw *hw)
	udelay(50);

	/* Enable PLL output. */
	ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL,
	return regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL,
				 PLL_OUTCTRL);
	if (ret)
		return ret;

	return 0;
}

static void clk_pll_disable(struct clk_hw *hw)