diff options
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 6cd4e929bd4d..ab07557bac07 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -2749,7 +2749,6 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans, | |||
2749 | BUG_ON(slot < 0); | 2749 | BUG_ON(slot < 0); |
2750 | 2750 | ||
2751 | if (slot != nritems) { | 2751 | if (slot != nritems) { |
2752 | int i; | ||
2753 | unsigned int old_data = btrfs_item_end_nr(leaf, slot); | 2752 | unsigned int old_data = btrfs_item_end_nr(leaf, slot); |
2754 | 2753 | ||
2755 | if (old_data < data_end) { | 2754 | if (old_data < data_end) { |
@@ -2913,7 +2912,6 @@ int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, | |||
2913 | nritems = btrfs_header_nritems(leaf); | 2912 | nritems = btrfs_header_nritems(leaf); |
2914 | 2913 | ||
2915 | if (slot + nr != nritems) { | 2914 | if (slot + nr != nritems) { |
2916 | int i; | ||
2917 | int data_end = leaf_data_end(root, leaf); | 2915 | int data_end = leaf_data_end(root, leaf); |
2918 | 2916 | ||
2919 | memmove_extent_buffer(leaf, btrfs_leaf_data(leaf) + | 2917 | memmove_extent_buffer(leaf, btrfs_leaf_data(leaf) + |