diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-30 09:59:36 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-08-07 17:51:39 +0800 |
commit | 6122bbbdc65630d202e5494d5b9678676f2883f8 (patch) | |
tree | 249e0796b35fa5d8e6097bf5a8c155b4ab3c557d /lib/mpi | |
parent | 30f1a9f53e77e4c9ddf55ebfda8a9d7666e46964 (diff) | |
download | linux-stable-6122bbbdc65630d202e5494d5b9678676f2883f8.tar.gz linux-stable-6122bbbdc65630d202e5494d5b9678676f2883f8.tar.bz2 linux-stable-6122bbbdc65630d202e5494d5b9678676f2883f8.zip |
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi')
-rw-r--r-- | lib/mpi/mpi-pow.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mpi/mpi-pow.c b/lib/mpi/mpi-pow.c index 468fb7cd1221..a5c921e6d667 100644 --- a/lib/mpi/mpi-pow.c +++ b/lib/mpi/mpi-pow.c @@ -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; |