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:
chao an 2023-01-06 13:30:13 +08:00 committed by Xiang Xiao
parent 6064aa8bb5
commit 3af47d1913

View File

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