aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2000-09-07 14:43:00 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2000-09-07 14:43:00 +0000
commitf69dfaede114edfba510c4b7ec35b3b07a352a84 (patch)
treebd5d7849073c3adbe877ed74a18d0ca0c9668d9c /sys/amd64
parent232d649b48e98b7edf6611d0cde70ccb7ebae28a (diff)
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/isa/isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c
index 9c96c4c8af957..ab9427d2e97a1 100644
--- a/sys/amd64/isa/isa.c
+++ b/sys/amd64/isa/isa.c
@@ -151,7 +151,7 @@ isa_alloc_resourcev(device_t child, int type, int *rid,
linear_cnt = count;
ressz = 1;
for (i = 1; i < count; ++i) {
- if (res[i] > res[i - 1] + 1) {
+ if (res[i] != res[i - 1] + 1) {
if (i < linear_cnt)
linear_cnt = i;
++ressz;
@@ -172,7 +172,7 @@ isa_alloc_resourcev(device_t child, int type, int *rid,
for (i = linear_cnt, k = 1; i < count; i = j, k++) {
for (j = i + 1; j < count; j++) {
- if (res[j] > res[j - 1] + 1)
+ if (res[j] != res[j - 1] + 1)
break;
}
bsrid = *rid + k;