Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5dcd90b authored by Wu Fengguang's avatar Wu Fengguang Committed by Linus Torvalds
Browse files

[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: default avatarWu Fengguang <wfg@mail.ustc.edu.cn>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3419b23a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;