Skip to contentSkip to conversation

clk: sunxi: fix build warning

PATCH Applied Corentin Labbe 2 participants 2 messages Oct 24, 2017 – Nov 2, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 clk: sunxi: fix build warning

This patch fix the following build warning:
drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]

Fixes 4cbeaebb8af1 ("clk: sunxi: factors: Add unregister function")

---
Changes since v1:
- added Ack and fixes tags

 drivers/clk/sunxi/clk-factors.c | 2 --
 1 file changed, 2 deletions(-)
drivers/clk/sunxi/clk-factors.c +0 -2
index dfe5e3e32d28..856fef65433b 100644
@@ -276,13 +276,11 @@ void sunxi_factors_unregister(struct device_node *node, struct clk *clk)
 {
 	struct clk_hw *hw = __clk_get_hw(clk);
 	struct clk_factors *factors;
-	const char *name;
 
 	if (!hw)
 		return;
 
 	factors = to_clk_factors(hw);
-	name = clk_hw_get_name(hw);
 
 	of_clk_del_provider(node);
 	/* TODO: The composite clock stuff will leak a bit here. */
Signature · 1 line
2.13.6
Applied
#1 lore raw
Quoted 8 lines · Corentin Labbe

This patch fix the following build warning:
drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]

Fixes 4cbeaebb8af1 ("clk: sunxi: factors: Add unregister function")

---

Applied to clk-next

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project