diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-20 01:32:58 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-20 01:32:58 +0000 |
commit | 7915adb56014e31e8ed8a4418060625c2e223fc0 (patch) | |
tree | 1d99680c416ab999716f7e3fb78956be8804e81f /sys/dev/vnic | |
parent | 2bc4747cc49351d47d2bdacd5c5d82bf4b44474b (diff) | |
download | src-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/dev/vnic')
-rw-r--r-- | sys/dev/vnic/mrml_bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vnic/mrml_bridge.c b/sys/dev/vnic/mrml_bridge.c index edc15717c4ae..cab8da50ce03 100644 --- a/sys/dev/vnic/mrml_bridge.c +++ b/sys/dev/vnic/mrml_bridge.c @@ -139,7 +139,7 @@ mrmlb_ofw_bus_alloc_res(device_t bus, device_t child, int type, int *rid, struct resource_list_entry *rle; int i; - if ((start == 0UL) && (end == ~0UL)) { + if (RMAN_IS_DEFAULT_RANGE(start, end)) { if ((di = device_get_ivars(child)) == NULL) return (NULL); if (type == SYS_RES_IOPORT) |