]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8192x: Remove use of seq_printf return value
authorJoe Perches <joe@perches.com>
Sun, 22 Feb 2015 02:53:45 +0000 (18:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:59:53 +0000 (16:59 -0800)
The seq_printf return value, because it's frequently misused,
will eventually be converted to void.

See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to
     seq_has_overflowed() and make public")

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_module.c
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c

index 0cf38091f8c51cd17123d1fe8d9e99c6608edaf1..248cc0d352ad2305de4d1cdc8217a1d09d7202a1 100644 (file)
@@ -207,7 +207,9 @@ static struct proc_dir_entry *rtllib_proc;
 
 static int show_debug_level(struct seq_file *m, void *v)
 {
-       return seq_printf(m, "0x%08X\n", rtllib_debug_level);
+       seq_printf(m, "0x%08X\n", rtllib_debug_level);
+
+       return 0;
 }
 
 static ssize_t write_debug_level(struct file *file, const char __user *buffer,
index 01492256558841266a79aff7503fc5bc9ec94677..9a607253823c574ca224cf5876dcb7e1c36bd241 100644 (file)
@@ -245,7 +245,9 @@ static struct proc_dir_entry *ieee80211_proc;
 
 static int show_debug_level(struct seq_file *m, void *v)
 {
-       return seq_printf(m, "0x%08X\n", ieee80211_debug_level);
+       seq_printf(m, "0x%08X\n", ieee80211_debug_level);
+
+       return 0;
 }
 
 static ssize_t write_debug_level(struct file *file, const char __user *buffer,