summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-bm1880.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-11-29 06:35:34 +0300
committerStephen Boyd <sboyd@kernel.org>2019-12-24 11:10:33 +0300
commit59ef4da4e4084d323dd4c3aa4b2fc64ce9e25625 (patch)
treec4d65902db2b9b084a6250d89bc61b54680371f3 /drivers/clk/clk-bm1880.c
parente42617b825f8073569da76dc4510bfa019b1c35a (diff)
downloadlinux-59ef4da4e4084d323dd4c3aa4b2fc64ce9e25625.tar.xz
clk: bm1800: Remove set but not used variable 'fref'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/clk/clk-bm1880.c: In function 'bm1880_pll_rate_calc': drivers/clk/clk-bm1880.c:477:13: warning: variable 'fref' set but not used [-Wunused-but-set-variable] It is never used, so remove it. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lkml.kernel.org/r/20191129033534.188257-1-yuehaibing@huawei.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-bm1880.c')
-rw-r--r--drivers/clk/clk-bm1880.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/clk-bm1880.c b/drivers/clk/clk-bm1880.c
index 4cd175afce9b..e6d6599d310a 100644
--- a/drivers/clk/clk-bm1880.c
+++ b/drivers/clk/clk-bm1880.c
@@ -474,11 +474,10 @@ static struct bm1880_composite_clock bm1880_composite_clks[] = {
static unsigned long bm1880_pll_rate_calc(u32 regval, unsigned long parent_rate)
{
u64 numerator;
- u32 fbdiv, fref, refdiv;
+ u32 fbdiv, refdiv;
u32 postdiv1, postdiv2, denominator;
fbdiv = (regval >> 16) & 0xfff;
- fref = parent_rate;
refdiv = regval & 0x1f;
postdiv1 = (regval >> 8) & 0x7;
postdiv2 = (regval >> 12) & 0x7;