btrfs: remove useless return value statement in split_node
At the point when we set 'ret = 0' it's guaranteed that the function is going to return 0 so directly return 0. No functional changes. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f30bed8342
commit
d5286a92ea
|
@ -3459,7 +3459,6 @@ static noinline int split_node(struct btrfs_trans_handle *trans,
|
||||||
(c_nritems - mid) * sizeof(struct btrfs_key_ptr));
|
(c_nritems - mid) * sizeof(struct btrfs_key_ptr));
|
||||||
btrfs_set_header_nritems(split, c_nritems - mid);
|
btrfs_set_header_nritems(split, c_nritems - mid);
|
||||||
btrfs_set_header_nritems(c, mid);
|
btrfs_set_header_nritems(c, mid);
|
||||||
ret = 0;
|
|
||||||
|
|
||||||
btrfs_mark_buffer_dirty(c);
|
btrfs_mark_buffer_dirty(c);
|
||||||
btrfs_mark_buffer_dirty(split);
|
btrfs_mark_buffer_dirty(split);
|
||||||
|
@ -3477,7 +3476,7 @@ static noinline int split_node(struct btrfs_trans_handle *trans,
|
||||||
btrfs_tree_unlock(split);
|
btrfs_tree_unlock(split);
|
||||||
free_extent_buffer(split);
|
free_extent_buffer(split);
|
||||||
}
|
}
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue