hwmon: remove unused superio_outb function
authorTom Rix <trix@redhat.com>
Thu, 23 Mar 2023 21:15:35 +0000 (17:15 -0400)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:33 +0000 (07:08 -0700)
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.

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Juerg Haefliger <juergh@proton.me>
Link: https://lore.kernel.org/r/20230323211535.2637939-1-trix@redhat.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/vt1211.c

index 4a5e911d26ebf953558c0c9fe033413e6cf667fb..fcd4be7a5a85009c6e23b13da15dc48e2e15f158 100644 (file)
@@ -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);