dm verity: fix checkpatch close brace error
authorJeongHyeon Lee <jhs2.lee@samsung.com>
Wed, 15 Jun 2022 00:51:51 +0000 (09:51 +0900)
committerMike Snitzer <snitzer@kernel.org>
Thu, 7 Jul 2022 15:49:36 +0000 (11:49 -0400)
Resolves: ERROR: else should follow close brace '}'

Signed-off-by: JeongHyeon Lee <jhs2.lee@samsung.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-verity-target.c

index d6dbd47..75b66dd 100644 (file)
@@ -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