diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-05-06 11:57:36 -0400 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2017-05-23 06:09:15 -0400 |
commit | 912eeed9f5208515b75103e91ff8b64cfdcca7b9 (patch) | |
tree | 39c4fc3239bfdbe0de00a2d1ab0b6c5fab84ff23 /net/batman-adv/network-coding.c | |
parent | 626caae9f25746c39b0a1204f8b8f532c1746f10 (diff) |
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>
Diffstat (limited to 'net/batman-adv/network-coding.c')
-rw-r--r-- | net/batman-adv/network-coding.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c index e1f6fc72fe3e..3604d7899e2c 100644 --- a/net/batman-adv/network-coding.c +++ b/net/batman-adv/network-coding.c | |||
@@ -1935,9 +1935,7 @@ int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset) | |||
1935 | list) | 1935 | list) |
1936 | seq_printf(seq, "%pM ", | 1936 | seq_printf(seq, "%pM ", |
1937 | nc_node->addr); | 1937 | nc_node->addr); |
1938 | seq_puts(seq, "\n"); | 1938 | seq_puts(seq, "\n Outgoing: "); |
1939 | |||
1940 | seq_puts(seq, " Outgoing: "); | ||
1941 | /* For out_nc_node to this orig_node */ | 1939 | /* For out_nc_node to this orig_node */ |
1942 | list_for_each_entry_rcu(nc_node, | 1940 | list_for_each_entry_rcu(nc_node, |
1943 | &orig_node->out_coding_list, | 1941 | &orig_node->out_coding_list, |