mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-16 17:43:23 +00:00
apps/altcp_tls: Remove redundant check for altcp_mbedtls_malloc_clear_stats
No need to check altcp_mbedtls_malloc_clear_stats twice. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
parent
eb30dbfdc5
commit
ec9f227eae
@ -107,10 +107,8 @@ tls_malloc(size_t c, size_t len)
|
|||||||
size_t alloc_size;
|
size_t alloc_size;
|
||||||
#if ALTCP_MBEDTLS_PLATFORM_ALLOC_STATS
|
#if ALTCP_MBEDTLS_PLATFORM_ALLOC_STATS
|
||||||
if (altcp_mbedtls_malloc_clear_stats) {
|
if (altcp_mbedtls_malloc_clear_stats) {
|
||||||
if (altcp_mbedtls_malloc_clear_stats) {
|
altcp_mbedtls_malloc_clear_stats = 0;
|
||||||
altcp_mbedtls_malloc_clear_stats = 0;
|
memset(&altcp_mbedtls_malloc_stats, 0, sizeof(altcp_mbedtls_malloc_stats));
|
||||||
memset(&altcp_mbedtls_malloc_stats, 0, sizeof(altcp_mbedtls_malloc_stats));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
alloc_size = sizeof(altcp_mbedtls_malloc_helper_t) + (c * len);
|
alloc_size = sizeof(altcp_mbedtls_malloc_helper_t) + (c * len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user