Skip to contentSkip to conversation

batman-adv: remove obsolete flags variable to avoid kernel warnings

PATCH In review Marek Lindner 2 participants 3 messages Oct 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: remove obsolete flags variable to avoid kernel warnings

---
 batman-adv/bat_debugfs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
batman-adv/bat_debugfs.c +0 -2
index 11e5f65..934c879 100644
@@ -57,7 +57,6 @@ static int fdebug_log(struct debug_log *debug_log, char *fmt, ...)
 	va_list args;
 	static char debug_log_buf[256];
 	char *p;
-	unsigned long flags;
 
 	if (!debug_log)
 		return 0;
@@ -113,7 +112,6 @@ static ssize_t log_read(struct file *file, char __user *buf,
 	struct debug_log *debug_log = bat_priv->debug_log;
 	int error, i = 0;
 	char c;
-	unsigned long flags;
 
 	if ((file->f_flags & O_NONBLOCK) &&
 	    !(debug_log->log_end - debug_log->log_start))
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Marek Lindner
---
 batman-adv/bat_debugfs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
batman-adv/bat_debugfs.c +0 -1
index 11e5f65..934c879 100644
@@ -57,7 +57,6 @@ static int fdebug_log(struct debug_log *debug_log, char
 *fmt, ...) va_list args;
 	static char debug_log_buf[256];
 	char *p;
-	unsigned long flags;
 
 	if (!debug_log)
 		return 0;

batman-adv/bat_debugfs.c static ssize_t log_read(struct file *file, char __user · line 117

Quoted 7 lines
batman-adv/bat_debugfs.c +0 -1
@@ -113,7 +112,6 @@ static ssize_t log_read(struct file *file, char __user
 *buf, struct debug_log *debug_log = bat_priv->debug_log;
 	int error, i = 0;
 	char c;
-	unsigned long flags;
 
 	if ((file->f_flags & O_NONBLOCK) &&
 	    !(debug_log->log_end - debug_log->log_start))

Correct. Forgot them because I only build it in non-debug mode.

#2 lore raw
Quoted 1 line · On Saturday 23 October 2010 17:19:21 Sven Eckelmann wrote:

Correct. Forgot them because I only build it in non-debug mode.

Same here - I missed these warnings when I checked your patch before submitting it. Just applied this patch (revision 1848).

Regards,
Marek