]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dm-verity: remove unnecessary ifdef around verity_fec_decode()
authorEric Biggers <ebiggers@kernel.org>
Fri, 19 Dec 2025 19:29:06 +0000 (11:29 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Sun, 4 Jan 2026 19:35:32 +0000 (20:35 +0100)
Since verity_fec_decode() has a !CONFIG_DM_VERITY_FEC stub, it can just
be called unconditionally, similar to the other calls in the same file.

Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-verity-target.c

index c9f5602a42c69b0ec63715fb20642e6d8299c84d..777a0ebe8536e70e0b16bf908e56ac6f122cec75 100644 (file)
@@ -435,11 +435,9 @@ static int verity_handle_data_hash_mismatch(struct dm_verity *v,
                        set_bit(blkno, v->validated_blocks);
                return 0;
        }
-#if defined(CONFIG_DM_VERITY_FEC)
        if (verity_fec_decode(v, io, DM_VERITY_BLOCK_TYPE_DATA, want_digest,
                              blkno, data) == 0)
                return 0;
-#endif
        if (bio->bi_status)
                return -EIO; /* Error correction failed; Just return error */