From 3af47d1913bd173ce701c7f293e468f5616efce6 Mon Sep 17 00:00:00 2001 From: chao an Date: Fri, 6 Jan 2023 13:30:13 +0800 Subject: [PATCH] net/tcp: remove unnecessary clear for device buffer which has been cleared in tcp_datahandler() Signed-off-by: chao an --- net/tcp/tcp_callback.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/tcp/tcp_callback.c b/net/tcp/tcp_callback.c index 4546f8b11be..4fb7f407bfa 100644 --- a/net/tcp/tcp_callback.c +++ b/net/tcp/tcp_callback.c @@ -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 */