btrfs-progs: convert: remove unused inode_key in copy_single_inode

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
master
Jeff Mahoney 2013-08-16 10:39:27 -04:00 committed by David Sterba
parent 90d3928987
commit 9b288f868b
1 changed files with 1 additions and 6 deletions

View File

@ -1041,7 +1041,6 @@ static int copy_single_inode(struct btrfs_trans_handle *trans,
int datacsum, int packing, int noxattr)
{
int ret;
struct btrfs_key inode_key;
struct btrfs_inode_item btrfs_inode;
if (ext2_inode->i_links_count == 0)
@ -1080,11 +1079,7 @@ static int copy_single_inode(struct btrfs_trans_handle *trans,
if (ret)
return ret;
}
inode_key.objectid = objectid;
inode_key.offset = 0;
btrfs_set_key_type(&inode_key, BTRFS_INODE_ITEM_KEY);
ret = btrfs_insert_inode(trans, root, objectid, &btrfs_inode);
return ret;
return btrfs_insert_inode(trans, root, objectid, &btrfs_inode);
}
static int copy_disk_extent(struct btrfs_root *root, u64 dst_bytenr,