From da671b490833332afb72e02480b9100535864cbf Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 17 Jun 2015 10:43:38 +0200 Subject: src/gf_w64.c: remove dead code Fix for Coverity issue: CID 1297852 (#1 of 1): 'Constant'; variable guards dead code (DEADCODE) dead_error_begin: Execution cannot reach this statement: fprintf(stderr, "Code conta.... Local variable no_default_flag is assigned only once, to a constant value, making it effectively constant throughout its scope. If this is not the intent, examine the logic to see if there is a missing assignment that would make no_default_flag not remain constant. Signed-off-by: Danny Al-Gaaf --- src/gf_w64.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gf_w64.c b/src/gf_w64.c index 6e75f5e..91f53d6 100644 --- a/src/gf_w64.c +++ b/src/gf_w64.c @@ -2153,7 +2153,6 @@ int gf_w64_scratch_size(int mult_type, int region_type, int divide_type, int arg int gf_w64_init(gf_t *gf) { gf_internal_t *h; - int no_default_flag = 0; h = (gf_internal_t *) gf->scratch; @@ -2168,10 +2167,6 @@ int gf_w64_init(gf_t *gf) } else { h->prim_poly = 0x1b; } - if (no_default_flag == 1) { - fprintf(stderr,"Code contains no default irreducible polynomial for given base field\n"); - return 0; - } } gf->multiply.w64 = NULL; -- cgit v1.2.1