mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
lib/mpi: Fix unused variable warnings
This patch removes a number of unused variables and marks others
as unused in order to silence compiler warnings about them.
Fixes: a8ea8bdd9d
("lib/mpi: Extend the MPI library")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
4a0c1de64b
commit
ae6ee6ae2b
4 changed files with 3 additions and 10 deletions
|
@ -21,7 +21,6 @@ void mpi_mul(MPI w, MPI u, MPI v)
|
|||
int usign, vsign, sign_product;
|
||||
int assign_wp = 0;
|
||||
mpi_ptr_t tmp_limb = NULL;
|
||||
unsigned int tmp_limb_nlimbs = 0;
|
||||
|
||||
if (u->nlimbs < v->nlimbs) {
|
||||
/* Swap U and V. */
|
||||
|
@ -55,7 +54,6 @@ void mpi_mul(MPI w, MPI u, MPI v)
|
|||
} else { /* Make U and V not overlap with W. */
|
||||
if (wp == up) {
|
||||
/* W and U are identical. Allocate temporary space for U. */
|
||||
tmp_limb_nlimbs = usize;
|
||||
up = tmp_limb = mpi_alloc_limb_space(usize);
|
||||
/* Is V identical too? Keep it identical with U. */
|
||||
if (wp == vp)
|
||||
|
@ -64,7 +62,6 @@ void mpi_mul(MPI w, MPI u, MPI v)
|
|||
MPN_COPY(up, wp, usize);
|
||||
} else if (wp == vp) {
|
||||
/* W and V are identical. Allocate temporary space for V. */
|
||||
tmp_limb_nlimbs = vsize;
|
||||
vp = tmp_limb = mpi_alloc_limb_space(vsize);
|
||||
/* Copy to the temporary space. */
|
||||
MPN_COPY(vp, wp, vsize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue