* [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci
@ 2024-04-13 13:46 Christophe JAILLET
2024-04-20 1:58 ` Stephen Boyd
2024-04-20 1:58 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Christophe JAILLET @ 2024-04-13 13:46 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-clk
In "struct clk_gemini_pci", the 'rate' field is unused.
Remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only.
Apparently, it has never been used. It is not a left-over from a
refactoring.
---
drivers/clk/clk-gemini.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/clk/clk-gemini.c b/drivers/clk/clk-gemini.c
index ba0ff01bf4dc..856b008e07c6 100644
--- a/drivers/clk/clk-gemini.c
+++ b/drivers/clk/clk-gemini.c
@@ -67,12 +67,10 @@ struct gemini_gate_data {
* struct clk_gemini_pci - Gemini PCI clock
* @hw: corresponding clock hardware entry
* @map: regmap to access the registers
- * @rate: current rate
*/
struct clk_gemini_pci {
struct clk_hw hw;
struct regmap *map;
- unsigned long rate;
};
/**
--
2.44.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci
2024-04-13 13:46 [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci Christophe JAILLET
@ 2024-04-20 1:58 ` Stephen Boyd
2024-04-20 1:58 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2024-04-20 1:58 UTC (permalink / raw)
To: Christophe JAILLET, Michael Turquette
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-clk
Quoting Christophe JAILLET (2024-04-13 06:46:09)
> In "struct clk_gemini_pci", the 'rate' field is unused.
>
> Remove it.
>
> Found with cppcheck, unusedStructMember.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci
2024-04-13 13:46 [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci Christophe JAILLET
2024-04-20 1:58 ` Stephen Boyd
@ 2024-04-20 1:58 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2024-04-20 1:58 UTC (permalink / raw)
To: Christophe JAILLET, Michael Turquette
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-clk
Quoting Christophe JAILLET (2024-04-13 06:46:09)
> In "struct clk_gemini_pci", the 'rate' field is unused.
>
> Remove it.
>
> Found with cppcheck, unusedStructMember.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-20 1:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-13 13:46 [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci Christophe JAILLET
2024-04-20 1:58 ` Stephen Boyd
2024-04-20 1:58 ` Stephen Boyd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.