Explorar o código

AVR32-pio: Use seq_putc() in pio_bank_show()

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>
Markus Elfring %!s(int64=9) %!d(string=hai) anos
pai
achega
78b7c6bff1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/avr32/mach-at32ap/pio.c

+ 1 - 1
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');
 	}
 }