Remove redundant NULL checks
authortb <tb@openbsd.org>
Wed, 29 Dec 2021 23:00:32 +0000 (23:00 +0000)
committertb <tb@openbsd.org>
Wed, 29 Dec 2021 23:00:32 +0000 (23:00 +0000)
CID 345154

regress/lib/libcrypto/bn/general/bntest.c

index 4f08dc4..53cce74 100644 (file)
@@ -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;