diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2019-07-02 13:21:33 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-07-02 18:38:51 -0500 |
commit | 590a18e1711318a7e1756be48853223a1eb84316 (patch) | |
tree | 5e87c69aa0809d99429a91a1c7170f03468a090a /drivers/pci/proc.c | |
parent | 6d2e369f0d4c3e6125c886847c04106b03d2609e (diff) | |
download | linux-stable-590a18e1711318a7e1756be48853223a1eb84316.tar.gz linux-stable-590a18e1711318a7e1756be48853223a1eb84316.tar.bz2 linux-stable-590a18e1711318a7e1756be48853223a1eb84316.zip |
PCI: Use seq_puts() instead of seq_printf() in show_device()
The driver name in /proc/bus/pci/devices can be printed without a printf
format specification, so use seq_puts() instead of seq_printf().
This issue was detected by using the Coccinelle software.
Link: https://lore.kernel.org/r/a6b110cb-0d0e-5dc3-9ca1-9041609cf74c@web.de
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/proc.c')
-rw-r--r-- | drivers/pci/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 445b51db75b0..fe7fe678965b 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c @@ -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; } |