mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 05:24:37 +08:00
simplify memp.c code a bit
This commit is contained in:
parent
0e9ef19cfb
commit
55d05092ef
@ -237,17 +237,14 @@ memp_init_pool(const struct memp_desc *desc)
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
#endif /* !MEMP_MEM_MALLOC */
|
|
||||||
|
|
||||||
#if MEMP_STATS
|
#if MEMP_STATS
|
||||||
#if !MEMP_MEM_MALLOC
|
|
||||||
desc->stats->avail = desc->num;
|
desc->stats->avail = desc->num;
|
||||||
|
#endif /* MEMP_STATS */
|
||||||
#endif /* !MEMP_MEM_MALLOC */
|
#endif /* !MEMP_MEM_MALLOC */
|
||||||
|
|
||||||
#if defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY
|
#if MEMP_STATS && (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 && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) */
|
||||||
#endif /* MEMP_STATS */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user