aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/originator.c
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2013-03-21 04:23:29 -0400
committerAntonio Quartulli <ordex@autistici.org>2013-03-27 05:29:55 -0400
commit0c81465357ffe29da9ff20103afe4a59908e0d30 (patch)
tree5772694c77eca193a52c55ef7a55e7619ee5ebef /net/batman-adv/originator.c
parent9cb812c54e7fe4a1485c92430dc1fc289dd221dd (diff)
batman-adv: use seq_puts instead of seq_printf when the format is constant
As reported by checkpatch, seq_puts has to be preferred with respect to seq_printf when the format is a constant string (no va_args) Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/originator.c')
-rw-r--r--net/batman-adv/originator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c
index 585e684a380b..2f3452546636 100644
--- a/net/batman-adv/originator.c
+++ b/net/batman-adv/originator.c
@@ -465,7 +465,7 @@ int batadv_orig_seq_print_text(struct seq_file *seq, void *offset)
465 neigh_node_tmp->tq_avg); 465 neigh_node_tmp->tq_avg);
466 } 466 }
467 467
468 seq_printf(seq, "\n"); 468 seq_puts(seq, "\n");
469 batman_count++; 469 batman_count++;
470 470
471next: 471next:
@@ -475,7 +475,7 @@ next:
475 } 475 }
476 476
477 if (batman_count == 0) 477 if (batman_count == 0)
478 seq_printf(seq, "No batman nodes in range ...\n"); 478 seq_puts(seq, "No batman nodes in range ...\n");
479 479
480out: 480out:
481 if (primary_if) 481 if (primary_if)