aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_debugfs.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-01-27 07:48:54 -0500
committerSven Eckelmann <sven@narfation.org>2011-01-31 08:57:12 -0500
commit1299bdaa1cb522de940d912f661bef59b9a39dd7 (patch)
tree811b2e08c3c8c8a36b59816a5c1c2d3ee4c16005 /net/batman-adv/bat_debugfs.c
parentfb86d7648ffdfc8778db2cd70d4bc5c6093e04c5 (diff)
batman-adv: Remove unused variables
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bat_debugfs.c')
-rw-r--r--net/batman-adv/bat_debugfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c
index 0ae81d07f102..d36d3056ad5d 100644
--- a/net/batman-adv/bat_debugfs.c
+++ b/net/batman-adv/bat_debugfs.c
@@ -52,7 +52,6 @@ static void emit_log_char(struct debug_log *debug_log, char c)
52 52
53static int fdebug_log(struct debug_log *debug_log, char *fmt, ...) 53static int fdebug_log(struct debug_log *debug_log, char *fmt, ...)
54{ 54{
55 int printed_len;
56 va_list args; 55 va_list args;
57 static char debug_log_buf[256]; 56 static char debug_log_buf[256];
58 char *p; 57 char *p;
@@ -62,8 +61,7 @@ static int fdebug_log(struct debug_log *debug_log, char *fmt, ...)
62 61
63 spin_lock_bh(&debug_log->lock); 62 spin_lock_bh(&debug_log->lock);
64 va_start(args, fmt); 63 va_start(args, fmt);
65 printed_len = vscnprintf(debug_log_buf, sizeof(debug_log_buf), 64 vscnprintf(debug_log_buf, sizeof(debug_log_buf), fmt, args);
66 fmt, args);
67 va_end(args); 65 va_end(args);
68 66
69 for (p = debug_log_buf; *p != 0; p++) 67 for (p = debug_log_buf; *p != 0; p++)