diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2014-11-28 21:01:38 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-03-27 08:43:47 +0300 |
commit | d41bd923d3e624462c9d7a2fcff5b62eee5e7f7f (patch) | |
tree | 2ef4e5980e60e3bba5c944f2e6bfc02db83ceafc /drivers/clk/qcom | |
parent | b3261d768bcdd4b368179ed85becf38c95461848 (diff) | |
download | linux-d41bd923d3e624462c9d7a2fcff5b62eee5e7f7f.tar.xz |
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 <fengguang.wu@intel.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom')
-rw-r--r-- | drivers/clk/qcom/clk-pll.c | 6 |
1 files changed, 1 insertions, 5 deletions
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) |