]> mj.ucw.cz Git - pciutils.git/commitdiff
HURD backend should compile again
authorMartin Mares <mj@ucw.cz>
Sun, 31 May 2020 09:53:28 +0000 (11:53 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 31 May 2020 09:53:28 +0000 (11:53 +0200)
Fixes a bug introduced by commit 82c06b47dea5a38075ce9d56f743360bc47b4c78.

lib/hurd.c

index 7b3b2ae1ab874081947dc2bff322ac32880221d9..ccd92f62edd5dae86e36bdb43ba93f9dd1472208 100644 (file)
@@ -307,8 +307,7 @@ hurd_fill_regions(struct pci_dev *d)
       d->base_addr[i] |= regions[i].is_64 << 2;
       d->base_addr[i] |= regions[i].is_prefetchable << 3;
 
-      if (flags & PCI_FILL_SIZES)
-       d->size[i] = regions[i].size;
+      d->size[i] = regions[i].size;
     }
 }