Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1637436
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/3] Input: Use seq_putc() in input_seq_print_bitmap() |
| Date | 2017-05-08 15:10 +0200 |
| Message-ID | <tEQAi-4ll-27@gated-at.bofh.it> (permalink) |
| References | <tEQAh-4ll-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net> Date: Mon, 8 May 2017 14:20:18 +0200 A single character 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> --- drivers/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 067d648028a2..0d204b841575 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -1126,7 +1126,7 @@ static void input_seq_print_bitmap(struct seq_file *seq, const char *name, * If no output was produced print a single 0. */ if (skip_empty) - seq_puts(seq, "0"); + seq_putc(seq, '0'); seq_putc(seq, '\n'); } -- 2.12.2
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/3] Input: Fine-tuning for six function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200 [PATCH 3/3] Input: Improve a size determination in four functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200 [PATCH 2/3] Input: Use seq_puts() in input_devices_seq_show() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200 [PATCH 1/3] Input: Use seq_putc() in input_seq_print_bitmap() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-08 15:10 +0200
csiph-web