aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/network-coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/network-coding.c')
-rw-r--r--net/batman-adv/network-coding.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
index 0787a34609b9..22cd51fea730 100644
--- a/net/batman-adv/network-coding.c
+++ b/net/batman-adv/network-coding.c
@@ -1763,6 +1763,13 @@ int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset)
1763 /* For each orig_node in this bin */ 1763 /* For each orig_node in this bin */
1764 rcu_read_lock(); 1764 rcu_read_lock();
1765 hlist_for_each_entry_rcu(orig_node, head, hash_entry) { 1765 hlist_for_each_entry_rcu(orig_node, head, hash_entry) {
1766 /* no need to print the orig node if it does not have
1767 * network coding neighbors
1768 */
1769 if (list_empty(&orig_node->in_coding_list) &&
1770 list_empty(&orig_node->out_coding_list))
1771 continue;
1772
1766 seq_printf(seq, "Node: %pM\n", orig_node->orig); 1773 seq_printf(seq, "Node: %pM\n", orig_node->orig);
1767 1774
1768 seq_puts(seq, " Ingoing: "); 1775 seq_puts(seq, " Ingoing: ");