Skip to contentSkip to conversation

dm verity: fixed ERROR: else should follow close brace '}'

PATCH New JeongHyeon Lee 1 participant 1 message Jun 15, 2022 1 message not in the archive Device mapper

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20220615005156epcas1p1c124873ba59260e6f94f3793ef8d3f3c@epcas1p1.samsung.com

#1 lore raw

PATCH 1/1 dm verity: fixed ERROR: else should follow close brace '}'

This patch fixes the following checkpatch error,
ERROR: else should follow close brace '}'

---
 drivers/md/dm-verity-target.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/md/dm-verity-target.c +3 -4
index d6dbd47492a8..75b66dd67633 100644
@@ -527,11 +527,10 @@ static int verity_verify_io(struct dm_verity_io *io)
 			if (v->validated_blocks)
 				set_bit(cur_block, v->validated_blocks);
 			continue;
-		}
-		else if (verity_fec_decode(v, io, DM_VERITY_BLOCK_TYPE_DATA,
-					   cur_block, NULL, &start) == 0)
+		} else if (verity_fec_decode(v, io, DM_VERITY_BLOCK_TYPE_DATA,
+					   cur_block, NULL, &start) == 0) {
 			continue;
-		else {
+		} else {
 			if (bio->bi_status) {
 				/*
 				 * Error correction failed; Just return error
Signature · 1 line
2.34.1