Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1501567
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/4] AVR32-pio: Use seq_putc() in pio_bank_show() |
| Date | 2016-10-16 22:40 +0200 |
| Message-ID | <st0nT-2dB-15@gated-at.bofh.it> (permalink) |
| References | <st0nT-2dB-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net> Date: Sun, 16 Oct 2016 22:13:19 +0200 A single character (line break) 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> --- arch/avr32/mach-at32ap/pio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c index 13d3fc4..abbe1b5 100644 --- a/arch/avr32/mach-at32ap/pio.c +++ b/arch/avr32/mach-at32ap/pio.c @@ -373,7 +373,7 @@ static void pio_bank_show(struct seq_file *s, struct gpio_chip *chip) if (imr & mask) seq_printf(s, " irq-%d edge-both", gpio_to_irq(chip->base + i)); - seq_printf(s, "\n"); + seq_putc(s, '\n'); } } -- 2.10.1
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/4] AVR32-AT32AP: Fine-tuning for three function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-16 22:40 +0200 [PATCH 3/4] AVR32-pio: Use seq_putc() in pio_bank_show() SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-16 22:40 +0200
csiph-web