Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63364
b: refs/heads/master
c: 6ace06d
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jul 31, 2007
1 parent 8ebbb50 commit 8c6f3db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9b3febc5b9c55a76b838c977b078195ec8bb95e
refs/heads/master: 6ace06dc68db13f7f82f9341fdef89502f0bb217
4 changes: 2 additions & 2 deletions trunk/lib/idr.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ EXPORT_SYMBOL(idr_remove);
*/
void idr_remove_all(struct idr *idp)
{
int n, id, max, error = 0;
int n, id, max;
struct idr_layer *p;
struct idr_layer *pa[MAX_LEVEL];
struct idr_layer **paa = &pa[0];
Expand All @@ -415,7 +415,7 @@ void idr_remove_all(struct idr *idp)
max = 1 << n;

id = 0;
while (id < max && !error) {
while (id < max) {
while (n > IDR_BITS && p) {
n -= IDR_BITS;
*paa++ = p;
Expand Down

0 comments on commit 8c6f3db

Please sign in to comment.