Commit 3b6364e5f20e0a5a6e3aa8dd143e5fdd8fc867ad

Authored by Danny Al-Gaaf
1 parent 86b994df
Exists in master and in 3 other branches v2, v3, wip-18092

gf_w4.c: add missing breaks

Since there is no comment indicating fallthrough on purpose added a
break in switch value 5 and 6.

Fix for coverity issue from Ceph project:

CID 1193082 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 5) is not terminated by a 'break'
 statement.

CID 1193083 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 6) is not terminated by a 'break'
 statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/gf_w4.c
... ... @@ -1584,6 +1584,7 @@ gf_w4_bytwo_b_nosse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_32_t
1584 1584 s64++;
1585 1585 }
1586 1586 }
  1587 + break;
1587 1588 case 6:
1588 1589 if (xor) {
1589 1590 while (d64 < (uint64_t *) rd.d_top) {
... ... @@ -1606,6 +1607,7 @@ gf_w4_bytwo_b_nosse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_32_t
1606 1607 s64++;
1607 1608 }
1608 1609 }
  1610 + break;
1609 1611 case 7:
1610 1612 if (xor) {
1611 1613 while (d64 < (uint64_t *) rd.d_top) {
... ...