anchao commented on code in PR #6997:
URL: https://github.com/apache/incubator-nuttx/pull/6997#discussion_r964383073


##########
net/procfs/net_procfs.c:
##########
@@ -155,44 +214,31 @@ static int netprocfs_open(FAR struct file *filep, FAR 
const char *relpath,
       return -EACCES;
     }
 
-#ifdef CONFIG_NET_STATISTICS
-  /* "net/stat" is an acceptable value for the relpath only if network layer
-   * statistics are enabled.
-   */
-
-  if (strcmp(relpath, "net/stat") == 0)
-    {
-      entry = NETPROCFS_SUBDIR_STAT;
-      dev   = NULL;
-    }
-  else
-#ifdef CONFIG_NET_MLD
-  /* "net/mld" is an acceptable value for the relpath only if MLD is
-   * enabled.
-   */
-
-  if (strcmp(relpath, "net/mld") == 0)
-    {
-      entry = NETPROCFS_SUBDIR_MLD;
-      dev   = NULL;
-    }
-  else
-#endif
-#endif
+  entry = NETPROCFS_SUBDIR_DEV;

Review Comment:
   Done



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