Btrfs-progs: fsck: fix wrong return value in check_block()
[platform/upstream/btrfs-progs.git] / cmds-check.c
index 96c003b..4cdeac8 100644 (file)
@@ -2477,7 +2477,7 @@ static int check_block(struct btrfs_trans_handle *trans,
        struct cache_extent *cache;
        struct btrfs_key key;
        enum btrfs_tree_block_status status;
-       int ret = 1;
+       int ret = 0;
        int level;
 
        cache = lookup_cache_extent(extent_cache, buf->start, buf->len);