Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e94acd86 authored by Valentina Giusti's avatar Valentina Giusti Committed by Chris Mason
Browse files

btrfs: replace path->slots[0] with otherwise unused variable 'slot'

parent ce3e7f10
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {