From 01e5d6d81930330f441a105083581a978a1af30d Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 8 Jul 2016 11:44:28 +0200 Subject: [PATCH] memp.c: No need to init variables located in BSS section --- src/core/memp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/memp.c b/src/core/memp.c index 430b04be..26bf5ff3 100644 --- a/src/core/memp.c +++ b/src/core/memp.c @@ -224,14 +224,10 @@ memp_init_pool(const struct memp_desc *desc) #endif /* MEMP_OVERFLOW_CHECK */ #if MEMP_STATS - desc->stats->used = 0; - desc->stats->max = 0; - desc->stats->err = 0; - desc->stats->illegal = 0; - desc->stats->avail = desc->num; + desc->stats->avail = desc->num; #if defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY - desc->stats->name = desc->desc; + desc->stats->name = desc->desc; #endif /* defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY */ #endif /* MEMP_STATS */ }