summaryrefslogtreecommitdiff
path: root/regress/lib/libcrypto/bn
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-12-29 23:00:33 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-12-29 23:00:33 +0000
commite1c269e9c582ca090a92e64d6d9cd6ad4160be40 (patch)
tree4c1afb40dd8fcc1042a69448d3e3e97f98819393 /regress/lib/libcrypto/bn
parentfa949e29640f81b40f659bd72b89a2ececd0dadd (diff)
Remove redundant NULL checks
CID 345154
Diffstat (limited to 'regress/lib/libcrypto/bn')
-rw-r--r--regress/lib/libcrypto/bn/general/bntest.c4
1 files changed, 1 insertions, 3 deletions
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;