Skip to contentSkip to conversation

hwmon: remove unused superio_outb function

PATCH Applied Tom Rix 3 participants 3 messages Mar 23, 2023 – Mar 25, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 hwmon: remove unused superio_outb function

clang with W=1 reports drivers/hwmon/vt1211.c:198:20: error: unused function
'superio_outb' [-Werror,-Wunused-function]
static inline void superio_outb(int sio_cip, int reg, int val)

                   ^

This function is not used so remove it.

---
 drivers/hwmon/vt1211.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/hwmon/vt1211.c +0 -6
index 4a5e911d26eb..fcd4be7a5a85 100644
@@ -195,12 +195,6 @@ struct vt1211_data {
 /* VT1211 logical device numbers */
 #define SIO_VT1211_LDN_HWMON	0x0b	/* HW monitor */
 
-static inline void superio_outb(int sio_cip, int reg, int val)
-{
-	outb(reg, sio_cip);
-	outb(val, sio_cip + 1);
-}
-
 static inline int superio_inb(int sio_cip, int reg)
 {
 	outb(reg, sio_cip);
Signature · 1 line
2.27.0
maintainer Acked-by on v1 1/1
#1 lore raw

------- Original Message -------

Quoted 10 lines · Tom Rix

clang with W=1 reports drivers/hwmon/vt1211.c:198:20: error: unused function 'superio_outb' [-Werror,-Wunused-function]
static inline void superio_outb(int sio_cip, int reg, int val) ^
This function is not used so remove it.

Looks good.

...Juerg

Quoted 23 lines

---
drivers/hwmon/vt1211.c | 6 ------

1 file changed, 6 deletions(-)
drivers/hwmon/vt1211.c +0 -7
index 4a5e911d26eb..fcd4be7a5a85 100644
@@ -195,12 +195,6 @@ struct vt1211_data {
 /* VT1211 logical device numbers /
 #define SIO_VT1211_LDN_HWMON 0x0b / HW monitor */
 
-static inline void superio_outb(int sio_cip, int reg, int val)
-{
- outb(reg, sio_cip);
- outb(val, sio_cip + 1);
-}
-
 static inline int superio_inb(int sio_cip, int reg)
 {
 outb(reg, sio_cip);
--

2.27.0