diff options
Diffstat (limited to 'sys/x86/x86/nexus.c')
-rw-r--r-- | sys/x86/x86/nexus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/x86/x86/nexus.c b/sys/x86/x86/nexus.c index 8b49d41..5d4c37e 100644 --- a/sys/x86/x86/nexus.c +++ b/sys/x86/x86/nexus.c @@ -397,7 +397,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid, return (NULL); rv = rman_reserve_resource(rm, start, end, count, flags, child); - if (rv == 0) + if (rv == NULL) return 0; rman_set_rid(rv, *rid); @@ -526,7 +526,7 @@ nexus_setup_intr(device_t bus, device_t child, struct resource *irq, if (irq == NULL) panic("nexus_setup_intr: NULL irq resource!"); - *cookiep = 0; + *cookiep = NULL; if ((rman_get_flags(irq) & RF_SHAREABLE) == 0) flags |= INTR_EXCL; |