You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "fjpanag (via GitHub)" <gi...@apache.org> on 2023/06/01 08:41:07 UTC

[GitHub] [nuttx] fjpanag commented on a diff in pull request #9423: net: Fix task block when devif_send fails.

fjpanag commented on code in PR #9423:
URL: https://github.com/apache/nuttx/pull/9423#discussion_r1212803880


##########
net/can/can_sendmsg.c:
##########
@@ -106,11 +106,13 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
         {
           /* Copy the packet data into the device packet buffer and send it */
 
-          devif_send(dev, pstate->snd_buffer, pstate->snd_buflen, 0);
+          int ret = devif_send(dev, pstate->snd_buffer,
+                               pstate->snd_buflen, 0);
           dev->d_len = dev->d_sndlen;

Review Comment:
   It was like this before, and this is only for CAN.
   I don't know if this assignment is important for the CAN system or its drivers, and I cannot test it.
   
   I would prefer to leave it as is, and not touch it. Unless you are sure and insist.



-- 
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-unsubscribe@nuttx.apache.org

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