summaryrefslogtreecommitdiff
path: root/usr/src/common/mpi/mpmontg.c
diff options
context:
space:
mode:
authorAndrew Stormont <astormont@racktopsystems.com>2018-03-18 13:07:01 +0000
committerDan McDonald <danmcd@joyent.com>2018-05-17 10:17:57 -0400
commit9ee48d48fcedfa1c02bcd16d6abbbfd28b9726c1 (patch)
treea0cc0b454b6523f57945e0b597ac46bca09f34fe /usr/src/common/mpi/mpmontg.c
parente87636823fcefbf553fdda979f84ad782e6e2202 (diff)
downloadillumos-joyent-9ee48d48fcedfa1c02bcd16d6abbbfd28b9726c1.tar.gz
8660 mpi code checks return value of void function
Reviewed by: Yuri Pankov <yuripv@gmx.com> Reviewed by: Gary Mills <gary_mills@fastmail.fm> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/common/mpi/mpmontg.c')
-rw-r--r--usr/src/common/mpi/mpmontg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/common/mpi/mpmontg.c b/usr/src/common/mpi/mpmontg.c
index 33aea8b0d6..150bd2d37f 100644
--- a/usr/src/common/mpi/mpmontg.c
+++ b/usr/src/common/mpi/mpmontg.c
@@ -40,11 +40,11 @@
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
+ * Copyright 2017 RackTop Systems.
+ *
* Sun elects to use this software under the MPL license.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* $Id: mpmontg.c,v 1.20 2006/08/29 02:41:38 nelson%bolyard.com Exp $ */
/* This file implements moduluar exponentiation using Montgomery's
@@ -104,7 +104,7 @@ mp_err s_mp_redc(mp_int *T, mp_mont_modulus *mmm)
for (i = 0; i < MP_USED(&mmm->N); ++i ) {
mp_digit m_i = MP_DIGIT(T, i) * mmm->n0prime;
/* T += N * m_i * (MP_RADIX ** i); */
- MP_CHECKOK( s_mp_mul_d_add_offset(&mmm->N, m_i, T, i) );
+ s_mp_mul_d_add_offset(&mmm->N, m_i, T, i);
}
s_mp_clamp(T);