diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-21 21:10:54 +0800 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2020-10-02 12:56:31 +0100 |
commit | 9846155b00fe56273b3265f85bef8b39b15305eb (patch) | |
tree | 4e1af282ff248a7142df5c298a075e2deba3c97f /drivers/pci | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) | |
download | linux-9846155b00fe56273b3265f85bef8b39b15305eb.tar.gz linux-9846155b00fe56273b3265f85bef8b39b15305eb.tar.bz2 linux-9846155b00fe56273b3265f85bef8b39b15305eb.zip |
PCI: loongson: Simplify loongson_pci_probe() return expression
Simplify the return expression.
Link: https://lore.kernel.org/r/20200921131054.92797-1-miaoqinglang@huawei.com
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/controller/pci-loongson.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/pci/controller/pci-loongson.c b/drivers/pci/controller/pci-loongson.c index 719c19fe2bfb..48169b1e3817 100644 --- a/drivers/pci/controller/pci-loongson.c +++ b/drivers/pci/controller/pci-loongson.c @@ -183,7 +183,6 @@ static int loongson_pci_probe(struct platform_device *pdev) struct device_node *node = dev->of_node; struct pci_host_bridge *bridge; struct resource *regs; - int err; if (!node) return -ENODEV; @@ -222,11 +221,7 @@ static int loongson_pci_probe(struct platform_device *pdev) bridge->ops = &loongson_pci_ops; bridge->map_irq = loongson_map_irq; - err = pci_host_probe(bridge); - if (err) - return err; - - return 0; + return pci_host_probe(bridge); } static struct platform_driver loongson_pci_driver = { |