Skip to content

Commit 912eeed

Browse files
elfringsimonwunderlich
authored andcommitted
batman-adv: Combine two seq_puts() calls into one call in batadv_nc_nodes_seq_print_text()
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>
1 parent 626caae commit 912eeed

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎net/batman-adv/network-coding.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,9 +1935,7 @@ int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset)
19351935
list)
19361936
seq_printf(seq, "%pM ",
19371937
nc_node->addr);
1938-
seq_puts(seq, "\n");
1939-
1940-
seq_puts(seq, " Outgoing: ");
1938+
seq_puts(seq, "\n Outgoing: ");
19411939
/* For out_nc_node to this orig_node */
19421940
list_for_each_entry_rcu(nc_node,
19431941
&orig_node->out_coding_list,

0 commit comments

Comments
 (0)