提交 6d76833c 编写于 作者: B Bjorn Helgaas

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: NBjorn Helgaas <bhelgaas@google.com>
上级 f66e5b29
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册