mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
engine/eng_lib.c: remove redundant #ifdef.
Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6786)
This commit is contained in:
parent
d1f8b74c58
commit
e519d6b563
@ -75,14 +75,10 @@ int engine_free_util(ENGINE *e, int not_locked)
|
||||
|
||||
if (e == NULL)
|
||||
return 1;
|
||||
#ifdef HAVE_ATOMICS
|
||||
CRYPTO_DOWN_REF(&e->struct_ref, &i, global_engine_lock);
|
||||
#else
|
||||
if (not_locked)
|
||||
CRYPTO_atomic_add(&e->struct_ref, -1, &i, global_engine_lock);
|
||||
CRYPTO_DOWN_REF(&e->struct_ref, &i, global_engine_lock);
|
||||
else
|
||||
i = --e->struct_ref;
|
||||
#endif
|
||||
engine_ref_debug(e, 0, -1);
|
||||
if (i > 0)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user