summaryrefslogtreecommitdiff
path: root/extent-tree.c
diff options
context:
space:
mode:
authorGu Jinxiang <gujx@cn.fujitsu.com>2018-01-26 15:26:04 +0800
committerDavid Sterba <dsterba@suse.com>2018-02-02 16:01:57 +0100
commit0de16cc4a098e5447fdaaade79c6a77883fb334a (patch)
tree6c8d73ff6fe1cd0e48c75444c0b7adce42f57442 /extent-tree.c
parent8bcac688beff3b8b863633744f0fb5f6d77e4ed9 (diff)
btrfs-progs: do clean up for redundancy value assignment
Although skinny_metadata's type is int, its value just can be 0/1. And if condition be true only when skinny_metadata equals 1, so in if's executive part, set skinny_metadata to 1 is redundancy. Remove it. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'extent-tree.c')
-rw-r--r--extent-tree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/extent-tree.c b/extent-tree.c
index 9600a8d..e2ae74a 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -1005,7 +1005,6 @@ static int lookup_inline_extent_backref(struct btrfs_trans_handle *trans,
extra_size = -1;
if (owner < BTRFS_FIRST_FREE_OBJECTID && skinny_metadata) {
- skinny_metadata = 1;
key.type = BTRFS_METADATA_ITEM_KEY;
key.offset = owner;
} else if (skinny_metadata) {