From: Marek Lindner Date: Mon, 23 Apr 2012 08:32:55 +0000 (+0800) Subject: batman-adv: return added entries instead of number of possibly added entries X-Git-Tag: v3.6-rc1~125^2~521^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08ad76ecc9f7f02cbe6ccbaa4abc9e9f193ed0e4;p=platform%2Fupstream%2Fkernel-adaptation-pc.git batman-adv: return added entries instead of number of possibly added entries Signed-off-by: Marek Lindner Acked-by: Antonio Quartulli Signed-off-by: Sven Eckelmann --- diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index ca53542..f9675b7 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c @@ -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)