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>
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)