From: Fengguang Wu Date: Fri, 28 Nov 2014 18:01:38 +0000 (+0800) Subject: clk: qcom: fix simple_return.cocci warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d41bd923d3e624462c9d7a2fcff5b62eee5e7f7f;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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: Fengguang Wu Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/qcom/clk-pll.c b/drivers/clk/qcom/clk-pll.c index b4325f65a1bf..245d5063a385 100644 --- a/drivers/clk/qcom/clk-pll.c +++ b/drivers/clk/qcom/clk-pll.c @@ -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)