soothe compiler
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
diff --git a/bn_mp_decr.c b/bn_mp_decr.c
index 06792a0..d35b7ff 100644
--- a/bn_mp_decr.c
+++ b/bn_mp_decr.c
@@ -16,7 +16,7 @@
/* Decrement "a" by one like "a--". Changes input! */
int mp_decr(mp_int *a)
{
- int e;
+ int e = MP_OKAY;
if (IS_ZERO(a)) {
mp_set(a,1uL);
a->sign = MP_NEG;
@@ -37,9 +37,8 @@ int mp_decr(mp_int *a)
mp_zero(a);
}
return MP_OKAY;
- } else {
- return mp_sub_d(a, 1uL,a);
}
+ return mp_sub_d(a, 1uL,a);
}
diff --git a/bn_mp_incr.c b/bn_mp_incr.c
index a938c6d..b7cd24a 100644
--- a/bn_mp_incr.c
+++ b/bn_mp_incr.c
@@ -15,7 +15,7 @@
/* Increment "a" by one like "a++". Changes input! */
int mp_incr(mp_int *a)
{
- int e;
+ int e = MP_OKAY;
if (IS_ZERO(a)) {
mp_set(a,1uL);
return MP_OKAY;
@@ -32,9 +32,8 @@ int mp_incr(mp_int *a)
} else if (a->dp[0] < MP_MASK) {
a->dp[0]++;
return MP_OKAY;
- } else {
- return mp_add_d(a, 1uL,a);
}
+ return mp_add_d(a, 1uL,a);
}
#endif