From: tb Date: Wed, 29 Dec 2021 23:00:32 +0000 (+0000) Subject: Remove redundant NULL checks X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4b15cc2f87fa58391fd36c60ba51ceaa67b4bdb6;p=openbsd Remove redundant NULL checks CID 345154 --- diff --git a/regress/lib/libcrypto/bn/general/bntest.c b/regress/lib/libcrypto/bn/general/bntest.c index 4f08dc473f6..53cce74ae01 100644 --- a/regress/lib/libcrypto/bn/general/bntest.c +++ b/regress/lib/libcrypto/bn/general/bntest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bntest.c,v 1.23 2021/11/25 11:07:17 tb Exp $ */ +/* $OpenBSD: bntest.c,v 1.24 2021/12/29 23:00:32 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2282,8 +2282,6 @@ test_sqrt(BIO *bp, BN_CTX *ctx) goto err; if ((r = BN_new()) == NULL) goto err; - if (a == NULL || p == NULL || r == NULL) - goto err; if ((cb = BN_GENCB_new()) == NULL) goto err;