diff mbox series

clk: qcom: rpm: Remove an unused field in struct rpm_cc

Message ID 9f92330c717e6f2dab27b1307565ffb108c304a7.1713017032.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State Accepted
Commit 3cb55215479f04940240792479c60fad53c2d202
Headers show
Series clk: qcom: rpm: Remove an unused field in struct rpm_cc | expand

Commit Message

Christophe JAILLET April 13, 2024, 2:04 p.m. UTC
In "struct rpm_cc", the 'rpm' 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/qcom/clk-rpm.c | 1 -
 1 file changed, 1 deletion(-)

Comments

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

Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Bjorn Andersson April 21, 2024, 4:07 p.m. UTC | #2
On Sat, 13 Apr 2024 16:04:04 +0200, Christophe JAILLET wrote:
> In "struct rpm_cc", the 'rpm' field is unused.
> 
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> 
> [...]

Applied, thanks!

[1/1] clk: qcom: rpm: Remove an unused field in struct rpm_cc
      commit: 3cb55215479f04940240792479c60fad53c2d202

Best regards,
diff mbox series

Patch

diff --git a/drivers/clk/qcom/clk-rpm.c b/drivers/clk/qcom/clk-rpm.c
index 745026ef4d9c..9da034f8f2ff 100644
--- a/drivers/clk/qcom/clk-rpm.c
+++ b/drivers/clk/qcom/clk-rpm.c
@@ -98,7 +98,6 @@  struct clk_rpm {
 };
 
 struct rpm_cc {
-	struct qcom_rpm *rpm;
 	struct clk_rpm **clks;
 	size_t num_clks;
 	u32 xo_buffer_value;