Skip to content

Commit 635bd69

Browse files
YueHaibingbebarino
authored andcommitted
clk: ingenic: Remove set but not used variable 'enable'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/clk/ingenic/cgu.c: In function 'ingenic_pll_recalc_rate': drivers/clk/ingenic/cgu.c:86:15: warning: variable 'enable' set but not used [-Wunused-but-set-variable] It's not used after commit ab27eb4 ("clk: ingenic: Add code to enable/disable PLLs") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 7ca4c92 commit 635bd69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/ingenic/cgu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ingenic_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
8383
const struct ingenic_cgu_clk_info *clk_info;
8484
const struct ingenic_cgu_pll_info *pll_info;
8585
unsigned m, n, od_enc, od;
86-
bool bypass, enable;
86+
bool bypass;
8787
unsigned long flags;
8888
u32 ctl;
8989

@@ -103,7 +103,6 @@ ingenic_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
103103
od_enc &= GENMASK(pll_info->od_bits - 1, 0);
104104
bypass = !pll_info->no_bypass_bit &&
105105
!!(ctl & BIT(pll_info->bypass_bit));
106-
enable = !!(ctl & BIT(pll_info->enable_bit));
107106

108107
if (bypass)
109108
return parent_rate;

0 commit comments

Comments
 (0)