Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux...
[profile/ivi/kernel-adaptation-intel-automotive.git] / net / batman-adv / bat_debugfs.c
index 0ae81d0..0e9d435 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 B.A.T.M.A.N. contributors:
+ * Copyright (C) 2010-2011 B.A.T.M.A.N. contributors:
  *
  * Marek Lindner
  *
@@ -52,7 +52,6 @@ static void emit_log_char(struct debug_log *debug_log, char c)
 
 static int fdebug_log(struct debug_log *debug_log, char *fmt, ...)
 {
-       int printed_len;
        va_list args;
        static char debug_log_buf[256];
        char *p;
@@ -62,8 +61,7 @@ static int fdebug_log(struct debug_log *debug_log, char *fmt, ...)
 
        spin_lock_bh(&debug_log->lock);
        va_start(args, fmt);
-       printed_len = vscnprintf(debug_log_buf, sizeof(debug_log_buf),
-                                fmt, args);
+       vscnprintf(debug_log_buf, sizeof(debug_log_buf), fmt, args);
        va_end(args);
 
        for (p = debug_log_buf; *p != 0; p++)