diff --git a/include/zephyr/net/net_pkt.h b/include/zephyr/net/net_pkt.h index a0e2c8ece59..d7d6dd70cdb 100644 --- a/include/zephyr/net/net_pkt.h +++ b/include/zephyr/net/net_pkt.h @@ -1555,10 +1555,8 @@ void net_pkt_frag_insert(struct net_pkt *pkt, struct net_buf *frag); * * @details After this there is no more any free space in individual fragments. * @param pkt Network packet. - * - * @return True if compact success, False otherwise. */ -bool net_pkt_compact(struct net_pkt *pkt); +void net_pkt_compact(struct net_pkt *pkt); /** * @brief Get information about predefined RX, TX and DATA pools. diff --git a/subsys/net/ip/net_pkt.c b/subsys/net/ip/net_pkt.c index b35900a0a3d..dd2e77ca4ca 100644 --- a/subsys/net/ip/net_pkt.c +++ b/subsys/net/ip/net_pkt.c @@ -756,7 +756,7 @@ void net_pkt_frag_insert(struct net_pkt *pkt, struct net_buf *frag) pkt->frags = frag; } -bool net_pkt_compact(struct net_pkt *pkt) +void net_pkt_compact(struct net_pkt *pkt) { struct net_buf *frag, *prev; @@ -812,8 +812,6 @@ bool net_pkt_compact(struct net_pkt *pkt) prev = frag; frag = frag->frags; } - - return true; } void net_pkt_get_info(struct k_mem_slab **rx,