From 890f4a61d7f4563af24617e7b2a5002cb2bf04cf Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 13 Sep 2016 12:00:17 +0200 Subject: btrfs-progs: cleanup, kill trivial btrfs_key_type helper Signed-off-by: David Sterba --- volumes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'volumes.c') diff --git a/volumes.c b/volumes.c index b0edbacb..da797517 100644 --- a/volumes.c +++ b/volumes.c @@ -367,7 +367,7 @@ no_more_items: goto check_pending; } } - if (btrfs_key_type(&key) != BTRFS_DEV_EXTENT_KEY) { + if (key.type != BTRFS_DEV_EXTENT_KEY) { goto next; } @@ -741,7 +741,7 @@ static int btrfs_device_avail_bytes(struct btrfs_trans_handle *trans, goto next; if (key.objectid > device->devid) break; - if (btrfs_key_type(&key) != BTRFS_DEV_EXTENT_KEY) + if (key.type != BTRFS_DEV_EXTENT_KEY) goto next; if (key.offset > search_end) break; -- cgit v1.2.3