Remove unnecessary parens on return.
This is a mechanical change generated from the following command:
find crypto/{asn1,pem,x509,x509v3} -name '*.c' -o -name '*.h' | xargs sed -i -e 's/return (\([^;()]*\));/return \1;/'
Change-Id: I957295af96c4aa08d6006e27093fd3a07fb6fe75
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/53089
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: Bob Beck <bbe@google.com>
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c
index 3906bc9..1bb574b 100644
--- a/crypto/asn1/a_strex.c
+++ b/crypto/asn1/a_strex.c
@@ -434,7 +434,7 @@
const char *p;
if (v == NULL) {
- return (0);
+ return 0;
}
n = 0;
p = (const char *)v->data;
@@ -447,17 +447,17 @@
n++;
if (n >= 80) {
if (BIO_write(bp, buf, n) <= 0) {
- return (0);
+ return 0;
}
n = 0;
}
}
if (n > 0) {
if (BIO_write(bp, buf, n) <= 0) {
- return (0);
+ return 0;
}
}
- return (1);
+ return 1;
}
int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) {
@@ -468,7 +468,7 @@
return ASN1_GENERALIZEDTIME_print(bp, tm);
}
BIO_write(bp, "Bad time value", 14);
- return (0);
+ return 0;
}
static const char *const mon[12] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
@@ -521,13 +521,13 @@
if (BIO_printf(bp, "%s %2d %02d:%02d:%02d%.*s %d%s", mon[M - 1], d, h, m, s,
f_len, f, y, (gmt) ? " GMT" : "") <= 0) {
- return (0);
+ return 0;
} else {
- return (1);
+ return 1;
}
err:
BIO_write(bp, "Bad time value", 14);
- return (0);
+ return 0;
}
// consume_two_digits is a helper function for ASN1_UTCTIME_print. If |*v|,