Skip to contentSkip to conversation

asus-wmi: Fix unused function build warning

PATCH In review Shuah Khan 2 participants 2 messages Jan 14, 2013 – Jan 23, 2013

Subsystems (2)
lore
Share & tools
lore

Shuah Khan

author
#0 lore raw

PATCH 1/1 asus-wmi: Fix unused function build warning

Fix the following build warning

CC [M] drivers/platform/x86/asus-wmi.o
drivers/platform/x86/asus-wmi.c:1356:13: warning: ‘do_nothing’ defined but not used [-Wunused-function]

---
 drivers/platform/x86/asus-wmi.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/platform/x86/asus-wmi.c +0 -5
index e41eae3..c11b242 100644
@@ -1353,11 +1353,6 @@ static int is_display_toggle(int code)
 	return 0;
 }
 
-static void do_nothing(void)
-{
-	return;
-}
-
 static void asus_wmi_notify(u32 value, void *context)
 {
 	struct asus_wmi *asus = context;
Signature · 1 line
1.7.9.5
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines · Shuah Khan

Fix the following build warning

CC [M] drivers/platform/x86/asus-wmi.o
drivers/platform/x86/asus-wmi.c:1356:13: warning: ‘do_nothing’ defined but not used [-Wunused-function]

---
 drivers/platform/x86/asus-wmi.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/platform/x86/asus-wmi.c +0 -6
index e41eae3..c11b242 100644
@@ -1353,11 +1353,6 @@ static int is_display_toggle(int code)
        return 0;
 }
 
-static void do_nothing(void)
-{
-       return;
-}
-
 static void asus_wmi_notify(u32 value, void *context)
 {
        struct asus_wmi *asus = context;
--
Quoted 4 lines

1.7.9.5

--
Corentin Chary
http://xf.iksaif.net