Commit da671b490833332afb72e02480b9100535864cbf
1 parent
5f31e271
Exists in
master
and in
1 other branch
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 <danny.al-gaaf@bisect.de>
Showing
1 changed file
with
0 additions
and
5 deletions
Show diff stats
src/gf_w64.c
... | ... | @@ -2153,7 +2153,6 @@ int gf_w64_scratch_size(int mult_type, int region_type, int divide_type, int arg |
2153 | 2153 | int gf_w64_init(gf_t *gf) |
2154 | 2154 | { |
2155 | 2155 | gf_internal_t *h; |
2156 | - int no_default_flag = 0; | |
2157 | 2156 | |
2158 | 2157 | h = (gf_internal_t *) gf->scratch; |
2159 | 2158 | |
... | ... | @@ -2168,10 +2167,6 @@ int gf_w64_init(gf_t *gf) |
2168 | 2167 | } else { |
2169 | 2168 | h->prim_poly = 0x1b; |
2170 | 2169 | } |
2171 | - if (no_default_flag == 1) { | |
2172 | - fprintf(stderr,"Code contains no default irreducible polynomial for given base field\n"); | |
2173 | - return 0; | |
2174 | - } | |
2175 | 2170 | } |
2176 | 2171 | |
2177 | 2172 | gf->multiply.w64 = NULL; | ... | ... |