OSDN Git Service

PCI: Drop pci_device_remove() test of pci_dev->driver
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 4 Oct 2021 12:59:25 +0000 (14:59 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 12 Oct 2021 22:37:15 +0000 (17:37 -0500)
commit097d9d414433315122f759ee6c2d8a7417a8ff0f
tree2ad4f41d91ef55b496f37d498d2a7f3cd582ad80
parent8e9028b3790ddb02c407e1a4da0ab7cf82790e7e
PCI: Drop pci_device_remove() test of pci_dev->driver

When the driver core calls pci_device_remove(), there is a driver bound
to the device, so pci_dev->driver is never NULL.

Remove the unnecessary test of pci_dev->driver.

Link: https://lore.kernel.org/r/20211004125935.2300113-2-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