pci/proc: Use seq_puts() in show_device()
Subsystems (2)
PATCH 1/1 pci/proc: Use seq_puts() in show_device()
From: Markus Elfring <[email protected]>
Date: Tue, 2 Jul 2019 13:21:33 +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 <[email protected]>
--- drivers/pci/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/proc.c +1 -1
@@ -377,7 +377,7 @@ static int show_device(struct seq_file *m, void *v) }seq_putc (m,'\t' );if (drv) -seq_printf (m,"%s" , drv->name); +seq_puts (m, drv->name);seq_putc (m,'\n' );return 0 ; }
--
2.22.0
Bjorn Helgaas
AppliedQuoted 9 lines · Markus Elfring
From: Markus Elfring <[email protected]>
Date: Tue, 2 Jul 2019 13:21:33 +0200A 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 <[email protected]>
Applied to pci/misc for v5.3, thanks!
Quoted 20 lines
--- drivers/pci/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pci/proc.c +1
-2@@ -377,7 +377,7 @@ static int show_device(struct seq_file *m, void *v) }seq_putc (m,'\t' );if (drv) -seq_printf (m,"%s" , drv->name); +seq_puts (m, drv->name);seq_putc (m,'\n' );return 0 ; } --2.22.0