From 7b42408756f53d38022363e2f0ac999db7d23a65 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 1 Dec 2020 11:13:08 +1000 Subject: remove unused assignments Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13577) --- crypto/asn1/asn1_par.c | 4 +--- crypto/asn1/tasn_dec.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'crypto/asn1') diff --git a/crypto/asn1/asn1_par.c b/crypto/asn1/asn1_par.c index b2a1b3a..cf6d48c 100644 --- a/crypto/asn1/asn1_par.c +++ b/crypto/asn1/asn1_par.c @@ -72,10 +72,8 @@ static int asn1_print_info(BIO *bp, long offset, int depth, int hl, long len, if (saved_indent >= 0) BIO_set_indent(bp, saved_indent); if (pop_f_prefix) { - BIO *next = BIO_pop(bp); - + BIO_pop(bp); BIO_free(bp); - bp = next; } return i; } diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c index 3fbf168..09adbf5 100644 --- a/crypto/asn1/tasn_dec.c +++ b/crypto/asn1/tasn_dec.c @@ -344,7 +344,6 @@ static int asn1_item_embed_d2i(ASN1_VALUE **pval, const unsigned char **in, } len -= p - q; seq_eoc = 0; - q = p; break; } /* @@ -519,7 +518,6 @@ static int asn1_template_noexp_d2i(ASN1_VALUE **val, aclass = flags & ASN1_TFLG_TAG_CLASS; p = *in; - q = p; /* * If field is embedded then val needs fixing so it is a pointer to -- cgit v1.1