summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2015-07-14 23:41:19 +0200
committerBjorn Helgaas <bhelgaas@google.com>2015-07-15 06:35:37 +0200
commitaaed816fde8501ed86bb62c4d7f7b137969afc7e (patch)
treeacfe23fcee021e73b4eb3bee624f6477a54fe329 /drivers/pci
parentPCI: Simplify pci_find_(ext_)capability() return value checks (diff)
downloadlinux-aaed816fde8501ed86bb62c4d7f7b137969afc7e.tar.xz
linux-aaed816fde8501ed86bb62c4d7f7b137969afc7e.zip
PCI: Remove useless redundant code
Remove redundant code from __pci_bus_find_cap_start(). No functional change. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 29b560591d54..359b954670e6 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -195,8 +195,6 @@ static int __pci_bus_find_cap_start(struct pci_bus *bus,
return PCI_CAPABILITY_LIST;
case PCI_HEADER_TYPE_CARDBUS:
return PCI_CB_CAPABILITY_LIST;
- default:
- return 0;
}
return 0;