aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/isa/isa_common.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index ca7fd15442b2..994288886cea 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -275,12 +275,7 @@ find_first_bit(uint32_t mask)
static int
find_next_bit(uint32_t mask, int bit)
{
- bit++;
- while (bit < 32 && !(mask & (1 << bit)))
- bit++;
- if (bit != 32)
- return (bit);
- return (-1);
+ return (find_first_bit(mask & (-2 << bit)));
}
/*