From: Vivek Goyal Date: Mon, 6 Jul 2015 15:55:40 +0000 (-0400) Subject: dm btree: remove unused "dm_block_t root" parameter in btree_split_sibling() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a8d4c3ef8f14cbd26d97767e3676722d4eebee5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dm btree: remove unused "dm_block_t root" parameter in btree_split_sibling() Signed-off-by: Vivek Goyal Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/persistent-data/dm-btree.c b/drivers/md/persistent-data/dm-btree.c index c7726cebc495..b6cec258cc21 100644 --- a/drivers/md/persistent-data/dm-btree.c +++ b/drivers/md/persistent-data/dm-btree.c @@ -420,8 +420,8 @@ EXPORT_SYMBOL_GPL(dm_btree_lookup); * * Where A* is a shadow of A. */ -static int btree_split_sibling(struct shadow_spine *s, dm_block_t root, - unsigned parent_index, uint64_t key) +static int btree_split_sibling(struct shadow_spine *s, unsigned parent_index, + uint64_t key) { int r; size_t size; @@ -625,7 +625,7 @@ static int btree_insert_raw(struct shadow_spine *s, dm_block_t root, if (top) r = btree_split_beneath(s, key); else - r = btree_split_sibling(s, root, i, key); + r = btree_split_sibling(s, i, key); if (r < 0) return r;