summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_debugfs.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-01-27 13:48:54 +0100
committerSven Eckelmann <sven@narfation.org>2011-01-31 14:57:12 +0100
commit1299bdaa1cb522de940d912f661bef59b9a39dd7 (patch)
tree811b2e08c3c8c8a36b59816a5c1c2d3ee4c16005 /net/batman-adv/bat_debugfs.c
parentfb86d7648ffdfc8778db2cd70d4bc5c6093e04c5 (diff)
downloadop-kernel-dev-1299bdaa1cb522de940d912f661bef59b9a39dd7.zip
op-kernel-dev-1299bdaa1cb522de940d912f661bef59b9a39dd7.tar.gz
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 0ae81d0..d36d305 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)
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++)
OpenPOWER on IntegriCloud