[PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci

Christophe JAILLET posted 1 patch 1 year, 10 months ago
drivers/clk/clk-gemini.c | 2 --
1 file changed, 2 deletions(-)
[PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci
Posted by Christophe JAILLET 1 year, 10 months ago
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
Re: [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci
Posted by Stephen Boyd 1 year, 9 months ago
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
Re: [PATCH] clk: gemini: Remove an unused field in struct clk_gemini_pci
Posted by Stephen Boyd 1 year, 9 months ago
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