]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Clean up dead code in Kconfig
authorJulian Braha <julianbraha@gmail.com>
Mon, 30 Mar 2026 21:45:49 +0000 (22:45 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 30 Mar 2026 22:21:46 +0000 (17:21 -0500)
commit7010f13acd3828056e50badb5138bf9ca21ddd8f
tree21e8f731b4b6a7be82bec0e2798a3584ac4380fb
parent47e2a338222c902dc44f4f6e29eb236a68600ef4
PCI: Clean up dead code in Kconfig

There is already an 'if PCI' condition wrapping several config options,
e.g., PCI_DOMAINS and VGA_ARB, making the 'depends on PCI' statement for
each of these a duplicate dependency (dead code).

Leave the outer 'if PCI...endif' and remove the individual 'depends on PCI'
statement from each option.

This dead code was found by kconfirm, a static analysis tool for Kconfig.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260330214549.16157-1-julianbraha@gmail.com
drivers/pci/Kconfig