]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Use seq_puts() instead of seq_printf() in show_device()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 2 Jul 2019 11:21:33 +0000 (13:21 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Jul 2019 23:38:51 +0000 (18:38 -0500)
commit17e7e6240c9129635086a32b6f9d610902744591
tree5e87c69aa0809d99429a91a1c7170f03468a090a
parent427f6c7309443c4a20720d0a7bd838bf66cb97fb
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>
drivers/pci/proc.c