summaryrefslogtreecommitdiffstats
path: root/sys/mips/idt/obio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/idt/obio.c')
-rw-r--r--sys/mips/idt/obio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/idt/obio.c b/sys/mips/idt/obio.c
index b95b11a..f151a79 100644
--- a/sys/mips/idt/obio.c
+++ b/sys/mips/idt/obio.c
@@ -204,7 +204,7 @@ obio_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) {
printf("%s: could not reserve resource\n", __func__);
return (0);
}
OpenPOWER on IntegriCloud