summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-11-29 02:01:38 +0800
committerStephen Boyd <sboyd@codeaurora.org>2015-03-26 22:43:47 -0700
commitd41bd923d3e624462c9d7a2fcff5b62eee5e7f7f (patch)
tree2ef4e5980e60e3bba5c944f2e6bfc02db83ceafc /drivers/clk
parentb3261d768bcdd4b368179ed85becf38c95461848 (diff)
downloadlinux-d41bd923d3e624462c9d7a2fcff5b62eee5e7f7f.tar.gz
linux-d41bd923d3e624462c9d7a2fcff5b62eee5e7f7f.tar.bz2
linux-d41bd923d3e624462c9d7a2fcff5b62eee5e7f7f.zip
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')
-rw-r--r--drivers/clk/qcom/clk-pll.c6
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)