Merge git://git.denx.de/u-boot-marvell
[pandora-u-boot.git] / drivers / pci / pci-uclass.c
index 47f3cc9..824fa11 100644 (file)
@@ -1026,7 +1026,6 @@ int pci_get_devfn(struct udevice *dev)
 static int pci_uclass_child_post_bind(struct udevice *dev)
 {
        struct pci_child_platdata *pplat;
-       int ret;
 
        if (!dev_of_valid(dev))
                return 0;
@@ -1038,8 +1037,6 @@ static int pci_uclass_child_post_bind(struct udevice *dev)
 
        /* Extract the devfn from fdt_pci_addr */
        pplat->devfn = pci_get_devfn(dev);
-       if (ret < 0)
-               return ret;
 
        return 0;
 }