Fixed style bugs in resource_list_add_next().

This commit is contained in:
Bruce Evans 2002-09-12 13:45:38 +00:00
parent 6b3015b6a6
commit f70de49661
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103247

View file

@ -1140,15 +1140,15 @@ resource_list_free(struct resource_list *rl)
}
int
resource_list_add_next(struct resource_list *rl, int type,
u_long start, u_long end, u_long count)
resource_list_add_next(struct resource_list *rl, int type, u_long start,
u_long end, u_long count)
{
int rid;
int rid;
rid = 0;
while (resource_list_find(rl, type, rid)) rid++;
while (resource_list_find(rl, type, rid) != NULL)
rid++;
resource_list_add(rl, type, rid, start, end, count);
return (rid);
}