]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
batman-adv: Combine two seq_puts() calls into one call in batadv_nc_nodes_seq_print_t...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 May 2017 15:57:36 +0000 (17:57 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 23 May 2017 10:09:15 +0000 (12:09 +0200)
A bit of text was put into a sequence by two separate function calls.
Print the same data by a single function call instead.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/network-coding.c

index e1f6fc72fe3e82cc3d55efdc1c08dfb60087ee23..3604d7899e2cb02dd4a2825cef3ffa490250eab2 100644 (file)
@@ -1935,9 +1935,7 @@ int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset)
                                                list)
                                seq_printf(seq, "%pM ",
                                           nc_node->addr);
-                       seq_puts(seq, "\n");
-
-                       seq_puts(seq, " Outgoing: ");
+                       seq_puts(seq, "\n Outgoing: ");
                        /* For out_nc_node to this orig_node */
                        list_for_each_entry_rcu(nc_node,
                                                &orig_node->out_coding_list,