Message ID | 20180705073731.18459-5-wqu@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/check/main.c b/check/main.c index 2b5abb2d025b..08476968aaba 100644 --- a/check/main.c +++ b/check/main.c @@ -2764,7 +2764,6 @@ static int check_inode_recs(struct btrfs_root *root, free_inode_rec(rec); continue; } - ret = 0; } if (!(repair && ret == 0))
In check_inode_recs(), for repair mode we always reset @ret to 0. It makes no sense and later we check@ret to determine if the repair is successful. Fix it by removing the offending overwrite. Signed-off-by: Qu Wenruo <wqu@suse.com> --- check/main.c | 1 - 1 file changed, 1 deletion(-)