Skip to content

Commit

Permalink
engine/eng_lib.c: remove redundant #ifdef.
Browse files Browse the repository at this point in the history
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Rich Salz <[email protected]>
(Merged from openssl#6786)
  • Loading branch information
Andy Polyakov committed Aug 7, 2018
1 parent d1f8b74 commit e519d6b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crypto/engine/eng_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e519d6b

Please sign in to comment.