Remove redundant tests
authorPauli <pauli@openssl.org>
Tue, 2 Nov 2021 23:21:46 +0000 (09:21 +1000)
committerPauli <pauli@openssl.org>
Thu, 4 Nov 2021 23:23:33 +0000 (09:23 +1000)
commit10cf46c4ef93e22f999b7b6d2c3aadc4db965e5a
treefe696496256c53fb0e72fee3347b47aac500176b
parent3a069c1b0b4857b838186aeb55378195dfa50823
Remove redundant tests

Removed the three checks of type against NULL since type cannot be NULL for
any of them.

Moved a check of ->engine inside a CPP guard for engines.

Didn't address the teardown and rebuild of the provider context.

Partially fixes #16947

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16952)
crypto/evp/digest.c