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
|
@ -31,7 +31,7 @@ mpihelp_mod_1(mpi_ptr_t dividend_ptr, mpi_size_t dividend_size,
|
|||
{
|
||||
mpi_size_t i;
|
||||
mpi_limb_t n1, n0, r;
|
||||
mpi_limb_t dummy;
|
||||
mpi_limb_t dummy __maybe_unused;
|
||||
|
||||
/* Botch: Should this be handled at all? Rely on callers? */
|
||||
if (!dividend_size)
|
||||
|
@ -382,7 +382,7 @@ mpihelp_divmod_1(mpi_ptr_t quot_ptr,
|
|||
{
|
||||
mpi_size_t i;
|
||||
mpi_limb_t n1, n0, r;
|
||||
mpi_limb_t dummy;
|
||||
mpi_limb_t dummy __maybe_unused;
|
||||
|
||||
if (!dividend_size)
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue