You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/03/22 04:05:57 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #3081: tcp_send_buffered.c: improve tcp write buffering

xiaoxiang781216 commented on a change in pull request #3081:
URL: https://github.com/apache/incubator-nuttx/pull/3081#discussion_r598411610



##########
File path: net/tcp/tcp_send_buffered.c
##########
@@ -1043,30 +1081,15 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf,
 
   BUF_DUMP("psock_tcp_send", buf, len);
 
-  if (len > 0)
+  FAR const uint8_t *cp = buf;

Review comment:
       need move to the begin of function.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org