summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-05-01 00:09:07 +0300
committerGuenter Roeck <linux@roeck-us.net>2024-05-01 17:47:49 +0300
commitb2728c095c0aeefaa7a0f6955fb76dd50f9906e4 (patch)
tree118c065f75fe7bd881aab5ecf5b8a03963d50f9e /drivers/hwmon
parentd8a66f3621c2886ad328d9df53349fc10251f583 (diff)
downloadlinux-b2728c095c0aeefaa7a0f6955fb76dd50f9906e4.tar.xz
hwmon: (stts751) Remove an unused field in struct stts751_priv
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> Link: https://lore.kernel.org/r/94ccf9caaa6b0101351bf381f09f4428c5e0835c.1714511322.git.christophe.jaillet@wanadoo.fr Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/stts751.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/stts751.c b/drivers/hwmon/stts751.c
index 427a65dd6f19..e7632081a1d1 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;