Change -1 to 0xfffffffful since the interface returns uint32_t.

This commit is contained in:
Warner Losh 2008-08-09 03:54:12 +00:00
parent ae438af62d
commit e33abcc50c

View File

@ -432,7 +432,7 @@ pci_read_device(device_t pcib, int d, int b, int s, int f, size_t size)
devlist_entry = NULL;
if (REG(PCIR_DEVVENDOR, 4) != -1) {
if (REG(PCIR_DEVVENDOR, 4) != 0xfffffffful) {
devlist_entry = malloc(size, M_DEVBUF, M_WAITOK | M_ZERO);
if (devlist_entry == NULL)
return (NULL);