]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
btrfs: remove unused "item" in btrfs_insert_delayed_item()
authorEric Sandeen <sandeen@redhat.com>
Thu, 31 Jan 2013 00:54:59 +0000 (00:54 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 17:59:23 +0000 (12:59 -0500)
"item" was set but never used in this function.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/delayed-inode.c

index c7e75061b8942082d799c9651ac10c8b570b70dd..0b278b117cbe609611764cf45127f89a133eed5f 100644 (file)
@@ -875,7 +875,6 @@ static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans,
                                     struct btrfs_delayed_item *delayed_item)
 {
        struct extent_buffer *leaf;
-       struct btrfs_item *item;
        char *ptr;
        int ret;
 
@@ -886,7 +885,6 @@ static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans,
 
        leaf = path->nodes[0];
 
-       item = btrfs_item_nr(leaf, path->slots[0]);
        ptr = btrfs_item_ptr(leaf, path->slots[0], char);
 
        write_extent_buffer(leaf, delayed_item->data, (unsigned long)ptr,