* [PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents
@ 2018-07-26 22:27 Anders Roxell
2018-07-27 16:55 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Anders Roxell @ 2018-07-26 22:27 UTC (permalink / raw)
To: gregory.clement, sboyd, mturquette; +Cc: linux-clk, linux-kernel, Anders Roxell
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.
Fixes: 616bf80d381d ("clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
drivers/clk/mvebu/armada-37xx-periph.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 287e98a7cff4..499f5962c8b0 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -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)) {
--
2.18.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents
2018-07-26 22:27 [PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents Anders Roxell
@ 2018-07-27 16:55 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2018-07-27 16:55 UTC (permalink / raw)
To: Anders Roxell, gregory.clement, mturquette
Cc: linux-clk, linux-kernel, Anders Roxell
Quoting Anders Roxell (2018-07-26 15:27:21)
> 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.
>
> Fixes: 616bf80d381d ("clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent")
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-27 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 22:27 [PATCH] clk: mvebu: armada-37xx-periph: Remove unused var num_parents Anders Roxell
2018-07-27 16:55 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).