summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-iproc.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-10-06 13:36:08 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-10-11 22:41:07 -0500
commit6d76833c5223348dc8fddaa31584d923cae2a566 (patch)
tree626b3d911afc7851aabb72b0896674c06e19484c /drivers/pci/host/pcie-iproc.c
parentf66e5b290796aeb6c5e027506175c87978f2722a (diff)
downloadlinux-6d76833c5223348dc8fddaa31584d923cae2a566.tar.bz2
PCI: iproc: Remove redundant null pointer checking
The callers never pass a null "pcie" pointer (they check for kzalloc failure), so we don't need to check here. The bus driver should never call the probe function with a null ->dev pointer, so we don't need to check that either. No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/host/pcie-iproc.c')
-rw-r--r--drivers/pci/host/pcie-iproc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-iproc.c b/drivers/pci/host/pcie-iproc.c
index 12a515622aef..e9210f657ca9 100644
--- a/drivers/pci/host/pcie-iproc.c
+++ b/drivers/pci/host/pcie-iproc.c
@@ -462,9 +462,6 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
void *sysdata;
struct pci_bus *bus;
- if (!pcie || !pcie->dev)
- return -EINVAL;
-
dev = pcie->dev;
ret = devm_request_pci_bus_resources(dev, res);
if (ret)