summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-08-09 03:54:12 +0000
committerimp <imp@FreeBSD.org>2008-08-09 03:54:12 +0000
commita61fcd56a5cc6c9fde0f8d920ed94d0d2fef4d79 (patch)
treee701eaf0067b05fc137c082eb6d3f046d83addf1 /sys/dev/pci
parentf5b6c2cd38f12fd63f84b6e3eb7dc9305d4e9c6d (diff)
downloadFreeBSD-src-a61fcd56a5cc6c9fde0f8d920ed94d0d2fef4d79.zip
FreeBSD-src-a61fcd56a5cc6c9fde0f8d920ed94d0d2fef4d79.tar.gz
Change -1 to 0xfffffffful since the interface returns uint32_t.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index b3168dc..cd347e7 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -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);
OpenPOWER on IntegriCloud