Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: gcc-ipq4019: Remove unused variable 'ret'

Fixes the following W=1 kernel build warning(s):

drivers/clk/qcom/gcc-ipq4019.c: In function ‘clk_cpu_div_set_rate’:
drivers/clk/qcom/gcc-ipq4019.c:1279:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-clk@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210126124540.3320214-14-lee.jones@linaro.org
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Lee Jones and committed by
Stephen Boyd
b92b01bd d8dbf923

+3 -4
+3 -4
drivers/clk/qcom/gcc-ipq4019.c
··· 1276 1276 struct clk_fepll *pll = to_clk_fepll(hw); 1277 1277 const struct freq_tbl *f; 1278 1278 u32 mask; 1279 - int ret; 1280 1279 1281 1280 f = qcom_find_freq(pll->freq_tbl, rate); 1282 1281 if (!f) 1283 1282 return -EINVAL; 1284 1283 1285 1284 mask = (BIT(pll->cdiv.width) - 1) << pll->cdiv.shift; 1286 - ret = regmap_update_bits(pll->cdiv.clkr.regmap, 1287 - pll->cdiv.reg, mask, 1288 - f->pre_div << pll->cdiv.shift); 1285 + regmap_update_bits(pll->cdiv.clkr.regmap, 1286 + pll->cdiv.reg, mask, 1287 + f->pre_div << pll->cdiv.shift); 1289 1288 /* 1290 1289 * There is no status bit which can be checked for successful CPU 1291 1290 * divider update operation so using delay for the same.