]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/portdrv: Don't check for the driver's and device's bus
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 2 Dec 2025 15:13:51 +0000 (16:13 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 13 Jan 2026 21:42:23 +0000 (15:42 -0600)
commit0c1594df40a00a1e3ce8d4ce8c17838de1ec29f2
treecee09a4024a55fc3975eb8210d935f119c841f4b
parent15fff3b799ffa38970c6d58dc8dd0aaf3317fab7
PCI/portdrv: Don't check for the driver's and device's bus

The driver core ensures that the match function is only called for drivers
and devices of the right bus. So drop the useless check.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/09ca261912a37d2b253f43359a5dfeec42c016dc.1764688034.git.u.kleine-koenig@baylibre.com
drivers/pci/pci-driver.c