PCI: Simplify pci_dev_driver()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 6 Oct 2020 21:49:17 +0000 (16:49 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Aug 2023 13:15:29 +0000 (08:15 -0500)
commit1ec09529bd19d8052655c12c3466ee5f5fe9f7f7
treef1e0b1a3fa525981ebd86910d0edb744b2b881d1
parent3b59ca944687b8651849f51b15c23e3fdbf07394
PCI: Simplify pci_dev_driver()

Simplify pci_dev_driver() by removing the "else".  The "if" case always
returns, so the "else" is superfluous.  No functional change intended.

Link: https://lore.kernel.org/r/20230824193712.542167-9-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/pci/pci-driver.c