xiaoxiang781216 commented on code in PR #6949:
URL: https://github.com/apache/incubator-nuttx/pull/6949#discussion_r957043352


##########
net/usrsock/usrsock_dev.c:
##########
@@ -264,22 +133,6 @@ static void usrsockdev_semgive(FAR sem_t *sem)
   nxsem_post(sem);
 }
 
-/****************************************************************************
- * Name: usrsockdev_is_opened
- ****************************************************************************/
-
-static bool usrsockdev_is_opened(FAR struct usrsockdev_s *dev)

Review Comment:
   let's keep this



##########
net/usrsock/usrsock_dev.c:
##########
@@ -1129,91 +538,58 @@ static int usrsockdev_poll(FAR struct file *filep, FAR 
struct pollfd *fds,
  ****************************************************************************/
 
 /****************************************************************************
- * Name: usrsockdev_do_request
+ * Name: usrsock_request
  ****************************************************************************/
 
-int usrsockdev_do_request(FAR struct usrsock_conn_s *conn,
-                          FAR struct iovec *iov, unsigned int iovcnt)
+int usrsock_request(FAR struct iovec *iov, unsigned int iovcnt)
 {
   FAR struct usrsockdev_s *dev = &g_usrsockdev;
-  FAR struct usrsock_request_common_s *req_head = iov[0].iov_base;
-
-  if (!usrsockdev_is_opened(dev))

Review Comment:
   keep



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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

Reply via email to