diff options
author | James Prestwood <prestwoj@gmail.com> | 2024-03-05 05:28:03 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-03-11 22:12:07 -0500 |
commit | 66cd1ec38c2a83fa6854866f9c0437dcd144820a (patch) | |
tree | f07c368e4f25b58ab4f7babf9c4984f31e2c22b4 | |
parent | 54bad67e964c7c104594786897693f43626fac46 (diff) |
cert: remove usused elem_data variable
This was being set in the if block, but never used after that.
Instead just check the return value directly.
-rw-r--r-- | ell/cert.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1658,7 +1658,6 @@ static int cert_try_load_der_format(const uint8_t *content, size_t content_len, { const uint8_t *seq; size_t seq_len; - const uint8_t *elem_data; size_t elem_len; uint8_t tag; @@ -1674,8 +1673,7 @@ static int cert_try_load_der_format(const uint8_t *content, size_t content_len, * to add any more formats we'll probably need to start guessing * from the filename suffix. */ - if (!(elem_data = asn1_der_find_elem(seq, seq_len, - 0, &tag, &elem_len))) + if (!asn1_der_find_elem(seq, seq_len,0, &tag, &elem_len)) return -ENOMSG; if (tag == ASN1_ID_SEQUENCE) { |