提交 6122bbbd 编写于 作者: C Colin Ian King 提交者: Herbert Xu

lib/mpi: remove redundant variable esign

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 30f1a9f5
...@@ -41,7 +41,7 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) ...@@ -41,7 +41,7 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)
mpi_ptr_t tspace = NULL; mpi_ptr_t tspace = NULL;
mpi_ptr_t rp, ep, mp, bp; mpi_ptr_t rp, ep, mp, bp;
mpi_size_t esize, msize, bsize, rsize; mpi_size_t esize, msize, bsize, rsize;
int esign, msign, bsign, rsign; int msign, bsign, rsign;
mpi_size_t size; mpi_size_t size;
int mod_shift_cnt; int mod_shift_cnt;
int negative_result; int negative_result;
...@@ -53,7 +53,6 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) ...@@ -53,7 +53,6 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)
esize = exp->nlimbs; esize = exp->nlimbs;
msize = mod->nlimbs; msize = mod->nlimbs;
size = 2 * msize; size = 2 * msize;
esign = exp->sign;
msign = mod->sign; msign = mod->sign;
rp = res->d; rp = res->d;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册