Skip to contentSkip to conversation

watchdog: it87_wdt: remove useless function

PATCH In review Jiapeng Chong 2 participants 2 messages Apr 13, 2021 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: it87_wdt: remove useless function

Fix the following clang warning:

drivers/watchdog/it87_wdt.c:155:20: warning: unused function 'superio_outw' [-Wunused-function].

---
 drivers/watchdog/it87_wdt.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/watchdog/it87_wdt.c +0 -8
index 2b48318..bb11229 100644
@@ -152,14 +152,6 @@ static inline int superio_inw(int reg)
 	return val;
 }
 
-static inline void superio_outw(int val, int reg)
-{
-	outb(reg++, REG);
-	outb(val >> 8, VAL);
-	outb(reg, REG);
-	outb(val, VAL);
-}
-
 /* Internal function, should be called after superio_select(GPIO) */
 static void _wdt_update_timeout(unsigned int t)
 {
Signature · 1 line
1.8.3.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jiapeng Chong

Fix the following clang warning:

drivers/watchdog/it87_wdt.c:155:20: warning: unused function 'superio_outw' [-Wunused-function].

Quoted 24 lines
---
 drivers/watchdog/it87_wdt.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/watchdog/it87_wdt.c +0 -8
index 2b48318..bb11229 100644
@@ -152,14 +152,6 @@ static inline int superio_inw(int reg)
 	return val;
 }
 
-static inline void superio_outw(int val, int reg)
-{
-	outb(reg++, REG);
-	outb(val >> 8, VAL);
-	outb(reg, REG);
-	outb(val, VAL);
-}
-
 /* Internal function, should be called after superio_select(GPIO) */
 static void _wdt_update_timeout(unsigned int t)
 {