mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 14:54:24 +00:00
Fixed style bugs in resource_list_add_next().
This commit is contained in:
parent
6b3015b6a6
commit
f70de49661
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103247
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue