Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-04-22 19:58:16 +0300
committerAdam Langley <agl@google.com>2015-05-05 01:58:05 +0300
commit4fcc2e2031b1ce4da39b5c402208abe8cd0ea3c6 (patch)
treef62b8d4324b0ae1802995bdd3b71171ea0d70e9b /crypto/ec/wnaf.c
parent5c20c444c4b05bf43aff6b5a9bb42ce8910ee06d (diff)
Make a few variable names saner.
Change-Id: I6790dc9651dc400992fc59a4c900210edeb2520c Reviewed-on: https://boringssl-review.googlesource.com/4511 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/ec/wnaf.c')
-rw-r--r--crypto/ec/wnaf.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/crypto/ec/wnaf.c b/crypto/ec/wnaf.c
index b6d1a541..0beee2f9 100644
--- a/crypto/ec/wnaf.c
+++ b/crypto/ec/wnaf.c
@@ -121,14 +121,8 @@ void *ec_pre_comp_dup(EC_PRE_COMP *pre_comp) {
}
void ec_pre_comp_free(EC_PRE_COMP *pre_comp) {
- int i;
-
- if (!pre_comp) {
- return;
- }
-
- i = CRYPTO_add(&pre_comp->references, -1, CRYPTO_LOCK_EC_PRE_COMP);
- if (i > 0) {
+ if (pre_comp == NULL ||
+ CRYPTO_add(&pre_comp->references, -1, CRYPTO_LOCK_EC_PRE_COMP) > 0) {
return;
}