mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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>
This commit is contained in:
parent
626caae9f2
commit
912eeed9f5
1 changed files with 1 additions and 3 deletions
|
@ -1935,9 +1935,7 @@ int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset)
|
||||||
list)
|
list)
|
||||||
seq_printf(seq, "%pM ",
|
seq_printf(seq, "%pM ",
|
||||||
nc_node->addr);
|
nc_node->addr);
|
||||||
seq_puts(seq, "\n");
|
seq_puts(seq, "\n Outgoing: ");
|
||||||
|
|
||||||
seq_puts(seq, " Outgoing: ");
|
|
||||||
/* For out_nc_node to this orig_node */
|
/* For out_nc_node to this orig_node */
|
||||||
list_for_each_entry_rcu(nc_node,
|
list_for_each_entry_rcu(nc_node,
|
||||||
&orig_node->out_coding_list,
|
&orig_node->out_coding_list,
|
||||||
|
|
Loading…
Add table
Reference in a new issue