code style

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-09-11 16:06:28 +01:00
parent 9f366b07ea
commit 3bbedf6ba0

View File

@ -31,7 +31,9 @@
int mbedtls_asn1_write_len(unsigned char **p, const unsigned char *start, size_t len) int mbedtls_asn1_write_len(unsigned char **p, const unsigned char *start, size_t len)
{ {
#if SIZE_MAX > 0xFFFFFFFF #if SIZE_MAX > 0xFFFFFFFF
if (len > 0xFFFFFFFF) return MBEDTLS_ERR_ASN1_INVALID_LENGTH; if (len > 0xFFFFFFFF) {
return MBEDTLS_ERR_ASN1_INVALID_LENGTH;
}
#endif #endif
int required = 1; int required = 1;