Skip to content

Commit

Permalink
[PATCH] radixtree: normalize radix_tree_tag_get() return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Fengguang authored and Linus Torvalds committed Jun 25, 2006
1 parent 3419b23 commit e5dcd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/radix-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e5dcd90

Please sign in to comment.