From: Valentina Giusti Date: Mon, 4 Nov 2013 21:34:28 +0000 (+0100) Subject: btrfs: replace path->slots[0] with otherwise unused variable 'slot' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e94acd86d48d61a5d919d807ed1efa0d8c1cd5ae;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git btrfs: replace path->slots[0] with otherwise unused variable 'slot' Signed-off-by: Valentina Giusti Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 3775947429b2..826b98c211ae 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -1683,8 +1683,8 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root, btrfs_release_path(path); leaf = path->nodes[0]; - item_size = btrfs_item_size_nr(leaf, path->slots[0]); - ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); + item_size = btrfs_item_size_nr(leaf, slot); + ptr = btrfs_item_ptr_offset(leaf, slot); cur_offset = 0; while (cur_offset < item_size) {