diff options
author | Wu Fengguang <wfg@mail.ustc.edu.cn> | 2006-06-25 08:48:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 13:01:13 -0400 |
commit | e5dcd90b53d601a04482db9800336a0ccf190880 (patch) | |
tree | b84936f569134612797cfa069401fe88dcac152d /lib | |
parent | 3419b23a919698f75944d3e0d97eb1d9c51e4bb6 (diff) |
[PATCH] radixtree: normalize radix_tree_tag_get() return value
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/radix-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index b32efae7688e..637d55608de5 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c | |||
@@ -530,7 +530,7 @@ int radix_tree_tag_get(struct radix_tree_root *root, | |||
530 | int ret = tag_get(slot, tag, offset); | 530 | int ret = tag_get(slot, tag, offset); |
531 | 531 | ||
532 | BUG_ON(ret && saw_unset_tag); | 532 | BUG_ON(ret && saw_unset_tag); |
533 | return ret; | 533 | return !!ret; |
534 | } | 534 | } |
535 | slot = slot->slots[offset]; | 535 | slot = slot->slots[offset]; |
536 | shift -= RADIX_TREE_MAP_SHIFT; | 536 | shift -= RADIX_TREE_MAP_SHIFT; |