summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros/apb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/atheros/apb.c')
-rw-r--r--sys/mips/atheros/apb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/atheros/apb.c b/sys/mips/atheros/apb.c
index abae9c2..6a38c7d 100644
--- a/sys/mips/atheros/apb.c
+++ b/sys/mips/atheros/apb.c
@@ -223,7 +223,7 @@ apb_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