Btrfs: remove an unused variable
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 May 2017 09:25:27 +0000 (12:25 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:57 +0000 (18:25 +0200)
"item" is never used.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c

index ef3c98c527c136c89b081f5fb0c4ebd414105cbe..ada36206737f6f51eaaccd3a58e3eaa9120cdf57 100644 (file)
@@ -5868,7 +5868,6 @@ static int btrfs_real_readdir(struct file *file, struct dir_context *ctx)
        struct inode *inode = file_inode(file);
        struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb);
        struct btrfs_root *root = BTRFS_I(inode)->root;
-       struct btrfs_item *item;
        struct btrfs_dir_item *di;
        struct btrfs_key key;
        struct btrfs_key found_key;
@@ -5919,7 +5918,6 @@ static int btrfs_real_readdir(struct file *file, struct dir_context *ctx)
                        continue;
                }
 
-               item = btrfs_item_nr(slot);
                btrfs_item_key_to_cpu(leaf, &found_key, slot);
 
                if (found_key.objectid != key.objectid)