Commit 9846155b authored by Qinglang Miao's avatar Qinglang Miao Committed by Lorenzo Pieralisi

PCI: loongson: Simplify loongson_pci_probe() return expression

Simplify the return expression.

Link: https://lore.kernel.org/r/20200921131054.92797-1-miaoqinglang@huawei.comSigned-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
parent 9123e3a7
...@@ -183,7 +183,6 @@ static int loongson_pci_probe(struct platform_device *pdev) ...@@ -183,7 +183,6 @@ static int loongson_pci_probe(struct platform_device *pdev)
struct device_node *node = dev->of_node; struct device_node *node = dev->of_node;
struct pci_host_bridge *bridge; struct pci_host_bridge *bridge;
struct resource *regs; struct resource *regs;
int err;
if (!node) if (!node)
return -ENODEV; return -ENODEV;
...@@ -222,11 +221,7 @@ static int loongson_pci_probe(struct platform_device *pdev) ...@@ -222,11 +221,7 @@ static int loongson_pci_probe(struct platform_device *pdev)
bridge->ops = &loongson_pci_ops; bridge->ops = &loongson_pci_ops;
bridge->map_irq = loongson_map_irq; bridge->map_irq = loongson_map_irq;
err = pci_host_probe(bridge); return pci_host_probe(bridge);
if (err)
return err;
return 0;
} }
static struct platform_driver loongson_pci_driver = { static struct platform_driver loongson_pci_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment