r8169: remove useless PCI region size check
Let's trust the hardware here and remove this useless check. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5f3c519347
commit
36f9b47457
|
@ -5203,12 +5203,6 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* check for weird/broken PCI region reporting */
|
||||
if (pci_resource_len(pdev, region) < R8169_REGS_SIZE) {
|
||||
dev_err(&pdev->dev, "Invalid PCI region size(s), aborting\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
rc = pcim_iomap_regions(pdev, BIT(region), KBUILD_MODNAME);
|
||||
if (rc < 0) {
|
||||
dev_err(&pdev->dev, "cannot remap MMIO, aborting\n");
|
||||
|
|
Loading…
Reference in New Issue