summaryrefslogtreecommitdiff
path: root/lib/mpi
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2021-02-02 14:37:25 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2021-02-02 14:37:25 +0000
commit9d4d8572a539ef807e21c196f145aa365fd52f0e (patch)
tree59a4fcd89ce86de32f068c2052f17a348188ae7e /lib/mpi
parent2c85ebc57b3e1817b6ce1a6b703928e113a90442 (diff)
parentf170b59fedd733b92f58c4d7c8357fbf7601d623 (diff)
Merge tag 'amba-make-remove-return-void' of https://git.pengutronix.de/git/ukl/linux into devel-stable
Tag for adaptions to struct amba_driver::remove changing prototype
Diffstat (limited to 'lib/mpi')
-rw-r--r--lib/mpi/ec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/mpi/ec.c b/lib/mpi/ec.c
index c21470122dfc..40f5908e57a4 100644
--- a/lib/mpi/ec.c
+++ b/lib/mpi/ec.c
@@ -1252,7 +1252,6 @@ void mpi_ec_mul_point(MPI_POINT result,
MPI_POINT q1, q2, prd, sum;
unsigned long sw;
mpi_size_t rsize;
- int scalar_copied = 0;
/* Compute scalar point multiplication with Montgomery Ladder.
* Note that we don't use Y-coordinate in the points at all.
@@ -1314,8 +1313,6 @@ void mpi_ec_mul_point(MPI_POINT result,
point_free(&p2);
point_free(&p1_);
point_free(&p2_);
- if (scalar_copied)
- mpi_free(scalar);
return;
}