]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Drop pci_device_probe() test of !pci_dev->driver
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 4 Oct 2021 12:59:26 +0000 (14:59 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Oct 2021 22:37:15 +0000 (17:37 -0500)
commitc7c56a67a5510ba37775d292831aa061c1bae0ed
tree7d5385eda6f590d85e103d86cea762a0d4926bdf
parent8d0b39c9a0d65b06b758c63c14116f4920b20106
PCI: Drop pci_device_probe() test of !pci_dev->driver

When the device core calls the .probe() callback for a device, the device
is never bound, so pci_dev->driver is always NULL.

Remove the unnecessary test of !pci_dev->driver.

Link: https://lore.kernel.org/r/20211004125935.2300113-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/pci/pci-driver.c