diff mbox series

clk: highbank: Remove an unused field in struct hb_clk

Message ID 90b19f2af3077075d4254e01d5ae919c423d067e.1713016457.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State Accepted, archived
Headers show
Series clk: highbank: Remove an unused field in struct hb_clk | expand

Commit Message

Christophe JAILLET April 13, 2024, 1:54 p.m. UTC
In "struct hb_clk", the 'parent_name' 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-highbank.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Stephen Boyd April 20, 2024, 1:57 a.m. UTC | #1
Quoting Christophe JAILLET (2024-04-13 06:54:35)
> In "struct hb_clk", the 'parent_name' field is unused.
> 
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---

Applied to clk-next
diff mbox series

Patch

diff --git a/drivers/clk/clk-highbank.c b/drivers/clk/clk-highbank.c
index 2a0cea2946f9..6e68a41a70a1 100644
--- a/drivers/clk/clk-highbank.c
+++ b/drivers/clk/clk-highbank.c
@@ -37,7 +37,6 @@ 
 struct hb_clk {
         struct clk_hw	hw;
 	void __iomem	*reg;
-	char *parent_name;
 };
 #define to_hb_clk(p) container_of(p, struct hb_clk, hw)