mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
net/tcp: remove unnecessary clear for device buffer
which has been cleared in tcp_datahandler() Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -86,8 +86,6 @@ tcp_data_event(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
|
||||
dev->d_iob->io_offset);
|
||||
|
||||
net_incr32(conn->rcvseq, recvlen);
|
||||
|
||||
netdev_iob_clear(dev);
|
||||
}
|
||||
|
||||
/* In any event, the new data has now been handled */
|
||||
|
||||
Reference in New Issue
Block a user