diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-05-06 17:50:13 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2017-05-23 12:09:14 +0200 |
commit | 626caae9f25746c39b0a1204f8b8f532c1746f10 (patch) | |
tree | e28bb811f8d34f8f23b10441293b5b9307acee2e /net/batman-adv/bat_iv_ogm.c | |
parent | batman-adv: decrease maximum fragment size (diff) | |
download | linux-626caae9f25746c39b0a1204f8b8f532c1746f10.tar.xz linux-626caae9f25746c39b0a1204f8b8f532c1746f10.zip |
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>
Diffstat (limited to 'net/batman-adv/bat_iv_ogm.c')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index 495ba7cdcb04..1f80392ab37c 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c @@ -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: |