summaryrefslogtreecommitdiff
path: root/cmds-restore.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-09-13 12:00:17 +0200
committerDavid Sterba <dsterba@suse.com>2016-10-03 11:33:15 +0200
commit890f4a61d7f4563af24617e7b2a5002cb2bf04cf (patch)
tree5396da9d1794403f8420f87c2b26c81e3e8ba5e9 /cmds-restore.c
parent555743075b5cc924021dd1e1a4a4697ee91441d8 (diff)
btrfs-progs: cleanup, kill trivial btrfs_key_type helper
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-restore.c')
-rw-r--r--cmds-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-restore.c b/cmds-restore.c
index 455c060d..1b3748b2 100644
--- a/cmds-restore.c
+++ b/cmds-restore.c
@@ -1233,7 +1233,7 @@ static int do_list_roots(struct btrfs_root *root)
}
btrfs_item_key(leaf, &disk_key, slot);
btrfs_disk_key_to_cpu(&found_key, &disk_key);
- if (btrfs_key_type(&found_key) != BTRFS_ROOT_ITEM_KEY) {
+ if (found_key.type != BTRFS_ROOT_ITEM_KEY) {
path->slots[0]++;
continue;
}