stack/stack.c: omit redundant NULL checks.
authorAndy Polyakov <appro@openssl.org>
Sun, 5 Aug 2018 14:56:54 +0000 (16:56 +0200)
committerAndy Polyakov <appro@openssl.org>
Tue, 7 Aug 2018 06:57:02 +0000 (08:57 +0200)
commit8839324450b569a6253e0dd237ee3e417ef17771
tree356e698dd18f5941f1846670bd2f5bbcf3aea5ac
parent5b37fef04a2b765835361f0652aaa0c41ed1b842
stack/stack.c: omit redundant NULL checks.

Checks are left in OPENSSL_sk_shift, OPENSSL_sk_pop and OPENSSL_sk_num.
This is because these are used as "opportunistic" readers, pulling
whatever datai, if any, set by somebody else. All calls that add data
don't check for stack being NULL, because caller should have checked
if stack was actually created.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6860)
crypto/stack/stack.c