x509.c: Remove one unnecessary cast

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2020-07-16 04:37:41 -04:00
parent 7e6075b7fd
commit ddc2db4c13
No known key found for this signature in database
GPG Key ID: 89A90840DC388527

View File

@ -176,7 +176,7 @@ static int x509_get_hash_alg( const mbedtls_x509_buf *alg, mbedtls_md_type_t *md
return( MBEDTLS_ERR_X509_INVALID_ALG +
MBEDTLS_ERR_ASN1_UNEXPECTED_TAG );
p = (unsigned char *) alg->p;
p = alg->p;
end = p + alg->len;
if( p >= end )