Commit fa5ec8112b66471559a4e983085703401e2fd866

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

gf_w8.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 1193084 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 5) 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_w8.c
... ... @@ -1932,6 +1932,7 @@ gf_w8_bytwo_b_nosse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_32_t
1932 1932 s64++;
1933 1933 }
1934 1934 }
  1935 + break;
1935 1936 case 6:
1936 1937 if (xor) {
1937 1938 while (d64 < (uint64_t *) rd.d_top) {
... ... @@ -1954,6 +1955,7 @@ gf_w8_bytwo_b_nosse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_32_t
1954 1955 s64++;
1955 1956 }
1956 1957 }
  1958 + break;
1957 1959 /*
1958 1960 case 7:
1959 1961 if (xor) {
... ...