Merge tag 'slab-for-5.17-part2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / pci / controller / pcie-iproc.c
index 36b9d2c..b3e75bc 100644 (file)
@@ -659,10 +659,8 @@ static int iproc_pci_raw_config_read32(struct iproc_pcie *pcie,
        void __iomem *addr;
 
        addr = iproc_pcie_map_cfg_bus(pcie, 0, devfn, where & ~0x3);
-       if (!addr) {
-               *val = ~0;
+       if (!addr)
                return PCIBIOS_DEVICE_NOT_FOUND;
-       }
 
        *val = readl(addr);