Skip to content

Commit

Permalink
dm btree: remove unused "dm_block_t root" parameter in btree_split_si…
Browse files Browse the repository at this point in the history
…bling()

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Vivek Goyal authored and Mike Snitzer committed Aug 12, 2015
1 parent 4051aab commit 0a8d4c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/md/persistent-data/dm-btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0a8d4c3

Please sign in to comment.