OceanfromXiaomi commented on code in PR #13127:
URL: https://github.com/apache/nuttx/pull/13127#discussion_r1730780361
##########
drivers/can/can.c:
##########
@@ -1280,7 +1280,10 @@ int can_receive(FAR struct can_dev_s *dev, FAR struct
can_hdr_s *hdr,
sizeof(struct can_hdr_s));
nbytes = can_dlc2bytes(hdr->ch_dlc);
- memcpy(fifo->rx_buffer[fifo->rx_tail].cm_data, data, nbytes);
+ if (nbytes)
Review Comment:
Yes, I will delete this condition
--
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]