acassis commented on code in PR #18085:
URL: https://github.com/apache/nuttx/pull/18085#discussion_r2712871999


##########
drivers/rpmsg/rpmsg_router_hub.c:
##########
@@ -92,16 +92,18 @@ static int rpmsg_router_hub_cb(FAR struct rpmsg_endpoint 
*ept,
                                FAR void *data, size_t len,
                                uint32_t src, FAR void *priv)
 {
-  FAR struct rpmsg_endpoint *dst_ept = priv;
+  FAR struct rpmsg_endpoint *peer_ept = priv;
 
   /* Retransmit data to dest edge core */
 
-  if (!dst_ept)
+  if (!peer_ept)

Review Comment:
   ```suggestion
     if (peer_ept == NULL)



##########
drivers/rpmsg/rpmsg_router_edge.c:
##########
@@ -677,18 +680,20 @@ static int rpmsg_router_cb(FAR struct rpmsg_endpoint *ept,
   FAR struct rpmsg_router_s *msg = data;
   FAR struct rpmsg_router_edge_s *edge;
 
-  /* Destroy the router edge device */
+  /* Destroy the router edge device
+   * or set pm state for edge device
+   */
 
   if (msg->cmd == RPMSG_ROUTER_DESTROY)
     {
       edge = ept->priv;
-      if (edge == NULL)
+
+      if (edge)

Review Comment:
   ```suggestion
         if (edge != NULL)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to