Skip to content

Commit

Permalink
lib/mpi: remove redundant variable esign
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Colin Ian King authored and herbertx committed Aug 7, 2018
1 parent 30f1a9f commit 6122bbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mpi/mpi-pow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 6122bbb

Please sign in to comment.