aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/rmi/xlr_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/rmi/xlr_pci.c')
-rw-r--r--sys/mips/rmi/xlr_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/rmi/xlr_pci.c b/sys/mips/rmi/xlr_pci.c
index 53581a6fed8d..3d985039d559 100644
--- a/sys/mips/rmi/xlr_pci.c
+++ b/sys/mips/rmi/xlr_pci.c
@@ -537,7 +537,7 @@ xlr_pci_alloc_resource(device_t bus, device_t child, int type, int *rid,
}
rv = rman_reserve_resource(rm, start, end, count, flags, child);
- if (rv == 0)
+ if (rv == NULL)
return (0);
rman_set_rid(rv, *rid);