Skip to content

Commit f2af7cb

Browse files
committed
clk: asm9620: Remove 'hw' local variable that isn't checked
The 'hw' pointer local variable in this function became unused after commit f5290d8 ("clk: asm9260: use parent index to link the reference clock"). Remove it to silence an unused but set variable warning. drivers/clk/clk-asm9260.c:258:17: warning: variable 'hw' set but not used [-Wunused-but-set-variable] struct clk_hw *hw, *pll_hw; ^ 1 warning generated. Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Fixes: f5290d8 ("clk: asm9260: use parent index to link the reference clock") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202309042014.IWERPl09-lkp@intel.com/ Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20230909000703.3478902-1-sboyd@kernel.org
1 parent 0bb80ec commit f2af7cb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/clk/clk-asm9260.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static struct asm9260_mux_clock asm9260_mux_clks[] __initdata = {
255255

256256
static void __init asm9260_acc_init(struct device_node *np)
257257
{
258-
struct clk_hw *hw, *pll_hw;
258+
struct clk_hw *pll_hw;
259259
struct clk_hw **hws;
260260
const char *pll_clk = "pll";
261261
struct clk_parent_data pll_parent_data = { .index = 0 };
@@ -283,7 +283,7 @@ static void __init asm9260_acc_init(struct device_node *np)
283283
for (n = 0; n < ARRAY_SIZE(asm9260_mux_clks); n++) {
284284
const struct asm9260_mux_clock *mc = &asm9260_mux_clks[n];
285285

286-
hw = clk_hw_register_mux_table_parent_data(NULL, mc->name, mc->parent_data,
286+
clk_hw_register_mux_table_parent_data(NULL, mc->name, mc->parent_data,
287287
mc->num_parents, mc->flags, base + mc->offset,
288288
0, mc->mask, 0, mc->table, &asm9260_clk_lock);
289289
}
@@ -292,7 +292,7 @@ static void __init asm9260_acc_init(struct device_node *np)
292292
for (n = 0; n < ARRAY_SIZE(asm9260_mux_gates); n++) {
293293
const struct asm9260_gate_data *gd = &asm9260_mux_gates[n];
294294

295-
hw = clk_hw_register_gate(NULL, gd->name,
295+
clk_hw_register_gate(NULL, gd->name,
296296
gd->parent_name, gd->flags | CLK_SET_RATE_PARENT,
297297
base + gd->reg, gd->bit_idx, 0, &asm9260_clk_lock);
298298
}

0 commit comments

Comments
 (0)