Commit d5286a92 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

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: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent f30bed83
...@@ -3459,7 +3459,6 @@ static noinline int split_node(struct btrfs_trans_handle *trans, ...@@ -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, ...@@ -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;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment