btrfs: remove nested duplicate variable declarations
authorDavid Sterba <dsterba@suse.cz>
Tue, 19 Apr 2011 12:31:08 +0000 (14:31 +0200)
committerDavid Sterba <dsterba@suse.cz>
Mon, 2 May 2011 11:57:19 +0000 (13:57 +0200)
Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/ctree.c
fs/btrfs/free-space-cache.c

index 84d7ca1fe0bac42a58c9115f2dccaa68efb6b3b6..c60197b36bc85f4a8df116965a2a9dd31b7a93c2 100644 (file)
@@ -3647,7 +3647,6 @@ setup_items_for_insert(struct btrfs_trans_handle *trans,
 
        ret = 0;
        if (slot == 0) {
-               struct btrfs_disk_key disk_key;
                btrfs_cpu_key_to_disk(&disk_key, cpu_key);
                ret = fixup_low_keys(trans, root, path, &disk_key, 1);
        }
index 63731a1fb0a1f9004e892a31e121ae977a9eff3a..9e69c6b8409ced8b3e2f465d6ac8724da0f3d4a3 100644 (file)
@@ -1910,8 +1910,6 @@ u64 btrfs_alloc_from_cluster(struct btrfs_block_group_cache *block_group,
        while(1) {
                if (entry->bytes < bytes ||
                    (!entry->bitmap && entry->offset < min_start)) {
-                       struct rb_node *node;
-
                        node = rb_next(&entry->offset_index);
                        if (!node)
                                break;
@@ -1925,7 +1923,6 @@ u64 btrfs_alloc_from_cluster(struct btrfs_block_group_cache *block_group,
                                                      cluster, entry, bytes,
                                                      min_start);
                        if (ret == 0) {
-                               struct rb_node *node;
                                node = rb_next(&entry->offset_index);
                                if (!node)
                                        break;