From c612e61e1db6ccb732123c9fe57f8cceba19ec4e Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Fri, 25 Dec 2015 03:11:13 -0500 Subject: [PATCH] Fix minor stylistic problem. Normally this would be pretty scary: if (...) { } if (...) { } But it's an early return anyway. Change-Id: I0a8965b5e294d3aaa803be47f4006ea0311c431d Reviewed-on: https://boringssl-review.googlesource.com/6851 Reviewed-by: Adam Langley --- crypto/evp/evp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crypto/evp/evp.c b/crypto/evp/evp.c index afe5c38a..0829f890 100644 --- a/crypto/evp/evp.c +++ b/crypto/evp/evp.c @@ -315,9 +315,11 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pengine, size_t len) { if (len == 3 && memcmp(name, "RSA", 3) == 0) { return &rsa_asn1_meth; - } if (len == 2 && memcmp(name, "EC", 2) == 0) { + } + if (len == 2 && memcmp(name, "EC", 2) == 0) { return &ec_asn1_meth; - } else if (len == 3 && memcmp(name, "DSA", 3) == 0) { + } + if (len == 3 && memcmp(name, "DSA", 3) == 0) { return &dsa_asn1_meth; } return NULL;