Skip to content

Commit

Permalink
PCI: iproc: Remove redundant null pointer checking
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bjorn Helgaas committed Oct 12, 2016
1 parent f66e5b2 commit 6d76833
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/pci/host/pcie-iproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d76833

Please sign in to comment.