batman-adv: return added entries instead of number of possibly added entries
authorMarek Lindner <lindner_marek@yahoo.de>
Mon, 23 Apr 2012 08:32:55 +0000 (16:32 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 18 Jun 2012 16:01:00 +0000 (18:01 +0200)
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/translation-table.c

index ca53542e1e8e6135b05445036e6269cf4eef62d6..f9675b7f5f997fc69c21bcd718d5ab596806735e 100644 (file)
@@ -319,7 +319,7 @@ int tt_changes_fill_buffer(struct bat_priv *bat_priv,
        }
        spin_unlock_bh(&bat_priv->tt_buff_lock);
 
-       return tot_changes;
+       return count;
 }
 
 int tt_local_seq_print_text(struct seq_file *seq, void *offset)