lib/mpi: remove redundant variable esign
Subsystems (2)
PATCH RESEND 1/1 lib/mpi: remove redundant variable esign
From: Colin Ian King <[email protected]>
Variable esign is being assigned but is never used hence it is redundant and can be removed.
Cleans up clang warning:
warning: variable 'esign' set but not used [-Wunused-but-set-variable]
Signed-off-by Colin Ian King <[email protected]>
--- lib/mpi/mpi-pow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
lib/mpi/mpi-pow.c +1 -2
@@ -41,7 +41,7 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)mpi_ptr_t tspace =NULL ;mpi_ptr_t rp, ep, mp, bp;mpi_size_t esize, msize, bsize, rsize; -int esign, msign, bsign, rsign; +int msign, bsign, rsign;mpi_size_t size;int mod_shift_cnt;int negative_result;
@@ -53,7 +53,6 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) esize = exp->nlimbs; msize = mod->nlimbs; size =2 * msize; - esign = exp->sign; msign = mod->sign; rp = res->d;
Signature · 1 line
2.17.1
Herbert Xu
maintainerQuoted 9 lines · Colin King
From: Colin Ian King <[email protected]>
Variable esign is being assigned but is never used hence it is redundant and can be removed.
Cleans up clang warning:
warning: variable 'esign' set but not used [-Wunused-but-set-variable]Signed-off-by Colin Ian King <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt