Commit fe695ea122e7f8a43fe3ef4e105d2e4336a410d4

Alexander Boström 2014-01-20T13:42:03

Avoid consecutive return statements This change keeps static checkers happy. This change originally came from Heimdal's bundled copy of libtommath. Signed-off-by: Ken Dreyer <ktdreyer@ktdreyer.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/bn_mp_invmod.c b/bn_mp_invmod.c
index 3d04b6e..0f547d4 100644
--- a/bn_mp_invmod.c
+++ b/bn_mp_invmod.c
@@ -32,9 +32,9 @@ int mp_invmod (mp_int * a, mp_int * b, mp_int * c)
 
 #ifdef BN_MP_INVMOD_SLOW_C
   return mp_invmod_slow(a, b, c);
-#endif
-
+#else
   return MP_VAL;
+#endif
 }
 #endif