From cc99bfa76bd25e40672841c78db9cc171be5488b Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Mon, 23 Nov 2015 13:30:04 -0500 Subject: Fix a few missed "if (!ptr)" cleanups And a scalar !x --> x==0 test Reviewed-by: Kurt Roeckx --- crypto/bio/bio_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/bio') diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index 6ab471cbcb..0e3469d9cb 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -471,7 +471,7 @@ BIO *BIO_find_type(BIO *bio, int type) { int mt, mask; - if (!bio) + if (bio == NULL) return NULL; mask = type & 0xff; do { @@ -491,7 +491,7 @@ BIO *BIO_find_type(BIO *bio, int type) BIO *BIO_next(BIO *b) { - if (!b) + if (b == NULL) return NULL; return b->next_bio; } -- cgit v1.2.3