aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2026-07-13 21:26:54 +0200
committerMikulas Patocka <mpatocka@redhat.com>2026-07-13 21:33:29 +0200
commit34dcadff8b70c409724506fbb42c366e3da2f5c8 (patch)
tree1016c7a17a2ed1098202ea86eb5811ac1bfb0e7a
parentdm-table: fix spelling (diff)
dm-verity: remove pointless nested "bio" declaration
Remove pointless declaration of "bio" and initialization using "dm_bio_from_per_bio_data". The variable "bio" is already declared and initialized in the upper block. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Assisted-by: Claude:claude-opus-4.6
-rw-r--r--drivers/md/dm-verity-target.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm-verity-target.c b/drivers/md/dm-verity-target.c
index 1b0763091254..241d3f3747e7 100644
--- a/drivers/md/dm-verity-target.c
+++ b/drivers/md/dm-verity-target.c
@@ -316,9 +316,7 @@ static int verity_verify_level(struct dm_verity *v, struct dm_verity_io *io,
else if (verity_handle_err(v,
DM_VERITY_BLOCK_TYPE_METADATA,
hash_block)) {
- struct bio *bio;
io->had_mismatch = true;
- bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size);
dm_audit_log_bio(DM_MSG_PREFIX, "verify-metadata", bio,
block, 0);
r = -EIO;