mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +00:00
memp.c: No need to init variables located in BSS section
This commit is contained in:
parent
18c332ae51
commit
01e5d6d819
@ -224,14 +224,10 @@ memp_init_pool(const struct memp_desc *desc)
|
|||||||
#endif /* MEMP_OVERFLOW_CHECK */
|
#endif /* MEMP_OVERFLOW_CHECK */
|
||||||
|
|
||||||
#if MEMP_STATS
|
#if MEMP_STATS
|
||||||
desc->stats->used = 0;
|
desc->stats->avail = desc->num;
|
||||||
desc->stats->max = 0;
|
|
||||||
desc->stats->err = 0;
|
|
||||||
desc->stats->illegal = 0;
|
|
||||||
desc->stats->avail = desc->num;
|
|
||||||
|
|
||||||
#if defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY
|
#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 /* defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY */
|
||||||
#endif /* MEMP_STATS */
|
#endif /* MEMP_STATS */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user