From: Wang Sheng-Hui Date: Fri, 30 Mar 2012 07:14:27 +0000 (+0800) Subject: btrfs/ctree.c: remove the unnecessary 'return -1;' at the end of bin_search X-Git-Tag: v3.5-rc1~17^2~1^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f775738f6fba9c7f6deaa540860d6fb7e2d28445;p=platform%2Fkernel%2Flinux-exynos.git btrfs/ctree.c: remove the unnecessary 'return -1;' at the end of bin_search The code path should not reach there. Remove it. Signed-off-by: Wang Sheng-Hui --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 4106264..2684799 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -854,20 +854,18 @@ static noinline int generic_bin_search(struct extent_buffer *eb, static int bin_search(struct extent_buffer *eb, struct btrfs_key *key, int level, int *slot) { - if (level == 0) { + if (level == 0) return generic_bin_search(eb, offsetof(struct btrfs_leaf, items), sizeof(struct btrfs_item), key, btrfs_header_nritems(eb), slot); - } else { + else return generic_bin_search(eb, offsetof(struct btrfs_node, ptrs), sizeof(struct btrfs_key_ptr), key, btrfs_header_nritems(eb), slot); - } - return -1; } int btrfs_bin_search(struct extent_buffer *eb, struct btrfs_key *key,