]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
batman-adv: Replace a seq_puts() call by seq_putc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 May 2017 15:50:13 +0000 (17:50 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 23 May 2017 10:09:14 +0000 (12:09 +0200)
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>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v.c

index 495ba7cdcb0451c997656116a300a49b7e43a089..1f80392ab37cce4fbec9f056578d2e4ad04af1ba 100644 (file)
@@ -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:
index a36c8e7291d61f171cdb128dee865739d22cb00e..4e2724c5b33d8bda27339ffe65fc7d76f91fd119 100644 (file)
@@ -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: