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:
parent
7d73bc6861
commit
0c2ee8b492
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue