diff --git a/net/udp/udp_callback.c b/net/udp/udp_callback.c index 87dd776f0f871..390dcbf97c3e1 100644 --- a/net/udp/udp_callback.c +++ b/net/udp/udp_callback.c @@ -82,9 +82,6 @@ static uint16_t udp_datahandler(FAR struct net_driver_s *dev, if (conn->readahead && conn->readahead->io_pktlen > conn->rcvbufs) { netdev_iob_release(dev); -#ifdef CONFIG_NET_STATISTICS - g_netstats.udp.drop++; -#endif return 0; } #endif