diff options
author | Pauli <paul.dale@oracle.com> | 2017-07-07 07:29:55 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-07-07 13:37:06 +1000 |
commit | b4df712acad6514efc8753d9aa8b5fe3a721c811 (patch) | |
tree | 7ea2f8d9c29fa97de0cae12fff9433606468a140 /crypto/bn | |
parent | ab3e8f63154c7daea9e67846aa83b6e1de7f8969 (diff) |
change return (x) to return x
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3878)
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_print.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c index 708067aa8a..956b2d520f 100644 --- a/crypto/bn/bn_print.c +++ b/crypto/bn/bn_print.c @@ -1,5 +1,5 @@ /* - * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -46,7 +46,7 @@ char *BN_bn2hex(const BIGNUM *a) } *p = '\0'; err: - return (buf); + return buf; } /* Must 'OPENSSL_free' the returned data */ @@ -128,7 +128,7 @@ int BN_hex2bn(BIGNUM **bn, const char *a) int num; if ((a == NULL) || (*a == '\0')) - return (0); + return 0; if (*a == '-') { neg = 1; @@ -143,12 +143,12 @@ int BN_hex2bn(BIGNUM **bn, const char *a) num = i + neg; if (bn == NULL) - return (num); + return num; /* a is the start of the hex digits, and it is 'i' long */ if (*bn == NULL) { if ((ret = BN_new()) == NULL) - return (0); + return 0; } else { ret = *bn; BN_zero(ret); @@ -186,11 +186,11 @@ int BN_hex2bn(BIGNUM **bn, const char *a) /* Don't set the negative flag if it's zero. */ if (ret->top != 0) ret->neg = neg; - return (num); + return num; err: if (*bn == NULL) BN_free(ret); - return (0); + return 0; } int BN_dec2bn(BIGNUM **bn, const char *a) @@ -201,7 +201,7 @@ int BN_dec2bn(BIGNUM **bn, const char *a) int num; if ((a == NULL) || (*a == '\0')) - return (0); + return 0; if (*a == '-') { neg = 1; a++; @@ -215,7 +215,7 @@ int BN_dec2bn(BIGNUM **bn, const char *a) num = i + neg; if (bn == NULL) - return (num); + return num; /* * a is the start of the digits, and it is 'i' long. We chop it into @@ -223,7 +223,7 @@ int BN_dec2bn(BIGNUM **bn, const char *a) */ if (*bn == NULL) { if ((ret = BN_new()) == NULL) - return (0); + return 0; } else { ret = *bn; BN_zero(ret); @@ -256,11 +256,11 @@ int BN_dec2bn(BIGNUM **bn, const char *a) /* Don't set the negative flag if it's zero. */ if (ret->top != 0) ret->neg = neg; - return (num); + return num; err: if (*bn == NULL) BN_free(ret); - return (0); + return 0; } int BN_asc2bn(BIGNUM **bn, const char *a) @@ -290,11 +290,11 @@ int BN_print_fp(FILE *fp, const BIGNUM *a) int ret; if ((b = BIO_new(BIO_s_file())) == NULL) - return (0); + return 0; BIO_set_fp(b, fp, BIO_NOCLOSE); ret = BN_print(b, a); BIO_free(b); - return (ret); + return ret; } # endif @@ -320,7 +320,7 @@ int BN_print(BIO *bp, const BIGNUM *a) } ret = 1; end: - return (ret); + return ret; } char *BN_options(void) @@ -338,5 +338,5 @@ char *BN_options(void) (int)sizeof(BN_ULONG) * 8, (int)sizeof(BN_ULONG) * 8); #endif } - return (data); + return data; } |