git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
lib
/
rbtree.c
diff --git
a/lib/rbtree.c
b/lib/rbtree.c
index
860115d
..
621552c
100644
(file)
--- a/
lib/rbtree.c
+++ b/
lib/rbtree.c
@@
-235,7
+235,7
@@
void rb_erase(struct rb_node *node, struct rb_root *root)
struct rb_node *old = node, *left;
node = node->rb_right;
struct rb_node *old = node, *left;
node = node->rb_right;
- while ((left = node->rb_left))
+ while ((left = node->rb_left)
!= NULL
)
node = left;
child = node->rb_right;
parent = node->rb_parent;
node = left;
child = node->rb_right;
parent = node->rb_parent;
@@
-305,7
+305,7
@@
struct rb_node *rb_first(struct rb_root *root)
n = root->rb_node;
if (!n)
n = root->rb_node;
if (!n)
- return
0
;
+ return
NULL
;
while (n->rb_left)
n = n->rb_left;
return n;
while (n->rb_left)
n = n->rb_left;
return n;