summaryrefslogtreecommitdiff
path: root/src/gf_w128.c
diff options
context:
space:
mode:
authorLoic Dachary <loic-test4@dachary.org>2015-09-02 16:05:33 +0000
committerLoic Dachary <loic-test4@dachary.org>2015-09-02 16:05:33 +0000
commitaf22f913ed60310516f6ab4c08389884b45338a4 (patch)
treef1145b294afc7dbe72b0482e94f7f0bff5026e01 /src/gf_w128.c
parent5f31e2719d4b66f1d5354b7424a81bf3423de7b7 (diff)
parent2f6db512fb83f2d8e84e8097ebd2595c6ec8f8eb (diff)
downloadgf-complete-af22f913ed60310516f6ab4c08389884b45338a4.tar.gz
Merge branch 'wip-da-SCA-coverity' into 'master'
Fix issues found by Coverity in the Ceph project Remove dead code and fix potential integer overflow issues See merge request !12
Diffstat (limited to 'src/gf_w128.c')
-rw-r--r--src/gf_w128.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gf_w128.c b/src/gf_w128.c
index 190f6b0..81999cb 100644
--- a/src/gf_w128.c
+++ b/src/gf_w128.c
@@ -1724,7 +1724,6 @@ int gf_w128_scratch_size(int mult_type, int region_type, int divide_type, int ar
int gf_w128_init(gf_t *gf)
{
gf_internal_t *h;
- int no_default_flag = 0;
h = (gf_internal_t *) gf->scratch;
@@ -1737,10 +1736,6 @@ int gf_w128_init(gf_t *gf)
} else {
h->prim_poly = 0x87; /* Omitting the leftmost 1 as in w=32 */
}
- if (no_default_flag == 1) {
- fprintf(stderr,"Code contains no default irreducible polynomial for given base field\n");
- return 0;
- }
}
gf->multiply.w128 = NULL;