net: net_pkt: Simplify conditional compilation

The #if has the same conditions as the one closed the previous #endif.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
Reto Schneider 2022-11-14 22:48:39 +01:00 committed by Fabio Baltieri
commit 217d9ac113

View file

@ -287,10 +287,7 @@ const char *net_pkt_pool2str(struct net_buf_pool *pool)
return "EDATA";
}
#endif
#if defined(CONFIG_NET_DEBUG_NET_PKT_ALLOC) || \
CONFIG_NET_PKT_LOG_LEVEL >= LOG_LEVEL_DBG
static inline int16_t get_frees(struct net_buf_pool *pool)
{
#if defined(CONFIG_NET_BUF_POOL_USAGE)