1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181452

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);