summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/tasn_new.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2006-03-15 17:45:43 +0000
committerNils Larsch <nils@openssl.org>2006-03-15 17:45:43 +0000
commit67b6f1ca889d789e04c58e5b2fbad0944bb1cd1a (patch)
tree9a367d762cfb0e55a2b8d224d8e7e1928089387c /crypto/asn1/tasn_new.c
parenta4ff392503fbc9ccd50fb425a69e50a64058314c (diff)
fix problems found by coverity: remove useless code
Diffstat (limited to 'crypto/asn1/tasn_new.c')
-rw-r--r--crypto/asn1/tasn_new.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/asn1/tasn_new.c b/crypto/asn1/tasn_new.c
index 083f88576a..95e7de25aa 100644
--- a/crypto/asn1/tasn_new.c
+++ b/crypto/asn1/tasn_new.c
@@ -345,10 +345,7 @@ int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it)
return 1;
case V_ASN1_BOOLEAN:
- if (it)
- *(ASN1_BOOLEAN *)pval = it->size;
- else
- *(ASN1_BOOLEAN *)pval = -1;
+ *(ASN1_BOOLEAN *)pval = it->size;
return 1;
case V_ASN1_NULL: