mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
batman-adv: Replace a seq_puts() call by seq_putc() in two functions
Two single characters (line breaks) should be put into a sequence. Thus use the corresponding function "seq_putc". 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
8ea026b160
commit
626caae9f2
@ -1944,7 +1944,7 @@ static void batadv_iv_ogm_orig_print(struct batadv_priv *bat_priv,
|
||||
|
||||
batadv_iv_ogm_orig_print_neigh(orig_node, if_outgoing,
|
||||
seq);
|
||||
seq_puts(seq, "\n");
|
||||
seq_putc(seq, '\n');
|
||||
batman_count++;
|
||||
|
||||
next:
|
||||
|
@ -400,7 +400,7 @@ static void batadv_v_orig_print(struct batadv_priv *bat_priv,
|
||||
neigh_node->if_incoming->net_dev->name);
|
||||
|
||||
batadv_v_orig_print_neigh(orig_node, if_outgoing, seq);
|
||||
seq_puts(seq, "\n");
|
||||
seq_putc(seq, '\n');
|
||||
batman_count++;
|
||||
|
||||
next:
|
||||
|
Loading…
Reference in New Issue
Block a user