fix: remove duplicated statistics of upd.drop

The valule of g_netstats.udp.drop has been increased in net_dataevent() function,
while it is increased in udp_datahandler().
This commit is contained in:
chenchuang 2024-11-17 15:29:19 +08:00 committed by archer
parent 7d73bc6861
commit 0c2ee8b492

View file

@ -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