From: Pauli Date: Mon, 31 May 2021 05:16:16 +0000 (+1000) Subject: ppc: fix ambiguous if if else statement X-Git-Tag: openssl-3.0.0-beta1~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7981653ea61b587bbb963985e30394177945e8e;p=thirdparty%2Fopenssl.git ppc: fix ambiguous if if else statement Reviewed-by: Richard Levitte Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15535) --- diff --git a/crypto/ppccap.c b/crypto/ppccap.c index 4d28d84cae2..27f048686ea 100644 --- a/crypto/ppccap.c +++ b/crypto/ppccap.c @@ -68,11 +68,12 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, * no opportunity to figure it out... */ - if (num == 6) + if (num == 6) { if (OPENSSL_ppccap_P & PPC_MADD300) return bn_mul_mont_300_fixed_n6(rp, ap, bp, np, n0, num); else return bn_mul_mont_fixed_n6(rp, ap, bp, np, n0, num); + } return bn_mul_mont_int(rp, ap, bp, np, n0, num); }