diff mbox series

thermal: k3_bandgap: Remove some unused fields in struct k3_bandgap

Message ID 206d39bed9ec6df9b4d80b1fc064e499389fc7fc.1712687420.git.christophe.jaillet@wanadoo.fr
State Accepted
Commit 61fad0a90685d3aaafb05fb6abc1fe39fbb90320
Headers show
Series thermal: k3_bandgap: Remove some unused fields in struct k3_bandgap | expand

Commit Message

Christophe JAILLET April 9, 2024, 7:56 p.m. UTC
In "struct k3_bandgap", the 'conf' 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/thermal/k3_bandgap.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Daniel Lezcano April 22, 2024, 4:44 p.m. UTC | #1
On 09/04/2024 21:56, Christophe JAILLET wrote:
> In "struct k3_bandgap", the 'conf' field is unused.
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/thermal/k3_bandgap.c b/drivers/thermal/k3_bandgap.c
index e88192d2afea..2a703770fc91 100644
--- a/drivers/thermal/k3_bandgap.c
+++ b/drivers/thermal/k3_bandgap.c
@@ -78,7 +78,6 @@  static const int k3_adc_to_temp[] = {
 
 struct k3_bandgap {
 	void __iomem *base;
-	const struct k3_bandgap_data *conf;
 };
 
 /* common data structures */