linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hwmon: (stts751) Remove an unused field in struct stts751_priv
@ 2024-04-30 21:09 Christophe JAILLET
  2024-05-01 14:45 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2024-04-30 21:09 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck
  Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-hwmon

In "struct stts751_priv", the 'smbus_timeout' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only.

This field was added in the initial commit 7f07ec0fa17a ("hwmon: new driver
for ST stts751 thermal sensor") but was never used.
---
 drivers/hwmon/stts751.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/stts751.c b/drivers/hwmon/stts751.c
index 847c99376930..867410afa4f8 100644
--- a/drivers/hwmon/stts751.c
+++ b/drivers/hwmon/stts751.c
@@ -91,7 +91,6 @@ struct stts751_priv {
 	int event_max, event_min;
 	int therm;
 	int hyst;
-	bool smbus_timeout;
 	int temp;
 	unsigned long last_update, last_alert_update;
 	u8 config;
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: (stts751) Remove an unused field in struct stts751_priv
  2024-04-30 21:09 [PATCH] hwmon: (stts751) Remove an unused field in struct stts751_priv Christophe JAILLET
@ 2024-05-01 14:45 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2024-05-01 14:45 UTC (permalink / raw)
  To: Christophe JAILLET
  Cc: Jean Delvare, linux-kernel, kernel-janitors, linux-hwmon

On Tue, Apr 30, 2024 at 11:09:07PM +0200, Christophe JAILLET wrote:
> In "struct stts751_priv", the 'smbus_timeout' field is unused.
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

Applied.

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-01 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-30 21:09 [PATCH] hwmon: (stts751) Remove an unused field in struct stts751_priv Christophe JAILLET
2024-05-01 14:45 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).