diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 68da757615ae55b8b9eaec3a68d6ec346e856761..ed897dc113568b3e49c1a16db4a37ea21714b99d 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -3945,12 +3945,10 @@ static int is_extent_unchanged(struct send_ctx *sctx, found_key.type != key.type) { key.offset += right_len; break; - } else { - if (found_key.offset != key.offset + right_len) { - /* Should really not happen */ - ret = -EIO; - goto out; - } + } + if (found_key.offset != key.offset + right_len) { + ret = 0; + goto out; } key = found_key; }