clk: mvebu: armada-37xx-periph: Remove unused var num_parents
Subsystems (2)
PATCH 1/1 clk: mvebu: armada-37xx-periph: Remove unused var num_parents
When building armada-37xx-periph, num_parents isn't used in function clk_pm_cpu_get_parent:drivers/clk/mvebu/armada-37xx-periph.c: In function ‘clk_pm_cpu_get_parent’:drivers/clk/mvebu/armada-37xx-periph.c:419:6: warning: unused variable ‘num_parents’ [-Wunused-variable]
int num_parents = clk_hw_get_num_parents(hw);
^~~~~~~~~~~Remove the declaration of num_parents to dispose the warning.
--- drivers/clk/mvebu/armada-37xx-periph.c | 1 - 1 file changed, 1 deletion(-)
drivers/clk/mvebu/armada-37xx-periph.c +0 -1
@@ -416,7 +416,6 @@ static unsigned int armada_3700_pm_dvfs_get_cpu_parent(struct regmap *base)static u8 clk_pm_cpu_get_parent (struct clk_hw *hw) {struct clk_pm_cpu *pm_cpu =to_clk_pm_cpu (hw); -int num_parents =clk_hw_get_num_parents (hw);u32 val;if (armada_3700_pm_dvfs_is_enabled (pm_cpu->nb_pm_base)) {
Signature · 1 line
2.18.0
Quoting Anders Roxell (2018-07-26 15:27:21)
Quoted 3 lines
When building armada-37xx-periph,
num_parentsisn't used in functionclk_pm_cpu_get_parent:drivers/clk/mvebu/armada-37xx-periph.c: In function =E2=80=98clk_pm_cpu_g=
et_parent=E2=80=99:
Quoted 1 line
drivers/clk/mvebu/armada-37xx-periph.c:419:6: warning: unused variable =
=E2=80=98num_parents=E2=80=99 [-Wunused-variable]
Quoted 6 lines
int num_parents =3D clk_hw_get_num_parents(hw); ^~~~~~~~~~~Remove the declaration of
num_parentsto dispose the warning. =Fixes 616bf80d381d ("clk: mvebu: armada-37xx-periph: Fix wrong return va=
lue in get_parent")
Quoted 2 lines
Signed-off-by Anders Roxell <[email protected]>---
Applied to clk-next