projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19f5946
)
trivial: Documentation/rbtree.txt: cleanup kerneldoc of rbtree.txt
author
figo.zhang
<figo.zhang@kolorific.com>
Fri, 17 Apr 2009 02:58:48 +0000
(10:58 +0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Fri, 12 Jun 2009 16:01:47 +0000
(18:01 +0200)
The first formal parameter of the rb_link_node() is a pointer, and the
"node" is define a data struct (pls see line 67 and line 73 in the
doc), so the actual parameter should use "&data->node".
Signed-off-by: Figo.zhang <figo.zhang@kolorific.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/rbtree.txt
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/rbtree.txt
b/Documentation/rbtree.txt
index 7224459b469e8bf76da4af840468e4dd9d44a520..77102148e67b63f5eefd704fcd6268c13f305e73 100644
(file)
--- a/
Documentation/rbtree.txt
+++ b/
Documentation/rbtree.txt
@@
-131,8
+131,8
@@
Example:
}
/* Add new node and rebalance tree. */
- rb_link_node(data->node, parent, new);
- rb_insert_color(data->node, root);
+ rb_link_node(
&
data->node, parent, new);
+ rb_insert_color(
&
data->node, root);
return TRUE;
}
@@
-146,10
+146,10
@@
To remove an existing node from a tree, call:
Example:
- struct mytype *data = mysearch(mytree, "walrus");
+ struct mytype *data = mysearch(
&
mytree, "walrus");
if (data) {
- rb_erase(
data->node,
mytree);
+ rb_erase(
&data->node, &
mytree);
myfree(data);
}