projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3419b23
)
[PATCH] radixtree: normalize radix_tree_tag_get() return value
author
Wu Fengguang
<wfg@mail.ustc.edu.cn>
Sun, 25 Jun 2006 12:48:14 +0000
(
05:48
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:13 +0000
(10:01 -0700)
In radix_tree_tag_get(), return normalized value of 0/1, as indicated
by its comment.
Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/radix-tree.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/radix-tree.c
b/lib/radix-tree.c
index b32efae7688e316e8825df6fd76a316a2c6f18bf..637d55608de55b463974afeb62eb704977426bbc 100644
(file)
--- a/
lib/radix-tree.c
+++ b/
lib/radix-tree.c
@@
-530,7
+530,7
@@
int radix_tree_tag_get(struct radix_tree_root *root,
int ret = tag_get(slot, tag, offset);
BUG_ON(ret && saw_unset_tag);
- return ret;
+ return
!!
ret;
}
slot = slot->slots[offset];
shift -= RADIX_TREE_MAP_SHIFT;