aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/idt
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-20 01:32:58 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-20 01:32:58 +0000
commit7915adb56014e31e8ed8a4418060625c2e223fc0 (patch)
tree1d99680c416ab999716f7e3fb78956be8804e81f /sys/mips/idt
parent2bc4747cc49351d47d2bdacd5c5d82bf4b44474b (diff)
downloadsrc-7915adb56014e31e8ed8a4418060625c2e223fc0.tar.gz
src-7915adb56014e31e8ed8a4418060625c2e223fc0.zip
Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it.
This simplifies checking for default resource range for bus_alloc_resource(), and improves readability. This is part of, and related to, the migration of rman_res_t from u_long to uintmax_t. Discussed with: jhb Suggested by: marcel
Notes
Notes: svn path=/head/; revision=295832
Diffstat (limited to 'sys/mips/idt')
-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 c8b4fef677ff..b95b11ac66cf 100644
--- a/sys/mips/idt/obio.c
+++ b/sys/mips/idt/obio.c
@@ -165,7 +165,7 @@ obio_alloc_resource(device_t bus, device_t child, int type, int *rid,
struct rman *rm;
int isdefault, needactivate, passthrough;
- isdefault = (start == 0UL && end == ~0UL);
+ isdefault = (RMAN_IS_DEFAULT_RANGE(start, end));
needactivate = flags & RF_ACTIVE;
passthrough = (device_get_parent(child) != bus);
rle = NULL;