Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638153 > unrolled thread

[PATCH 3/4] hamradio: Use seq_puts() in bpq_seq_show()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-05-09 16:30 +0200
Last post2017-05-09 16:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] hamradio: Use seq_puts() in bpq_seq_show() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-09 16:30 +0200

#1638153 — [PATCH 3/4] hamradio: Use seq_puts() in bpq_seq_show()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-05-09 16:30 +0200
Subject[PATCH 3/4] hamradio: Use seq_puts() in bpq_seq_show()
Message-ID<tFejg-2TS-13@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 9 May 2017 15:45:09 +0200

A string which did not contain a data format specification should be put
into a sequence. Thus use the corresponding function "seq_puts".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/net/hamradio/bpqether.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c
index f62e7f325cf9..eaa0f2e8e561 100644
--- a/drivers/net/hamradio/bpqether.c
+++ b/drivers/net/hamradio/bpqether.c
@@ -434,7 +434,7 @@ static int bpq_seq_show(struct seq_file *seq, void *v)
 			bpqdev->dest_addr);
 
 		if (is_multicast_ether_addr(bpqdev->acpt_addr))
-			seq_printf(seq, "*\n");
+			seq_puts(seq, "*\n");
 		else
 			seq_printf(seq, "%pM\n", bpqdev->acpt_addr);
 
-- 
2.12.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web