com/can: Remove unnecessary judgment logic

The feature of preventing the same ID frame rotation should be done in the lowerhalf, not in the upperhalf.

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
This commit is contained in:
gaohedong 2024-11-10 15:34:39 +08:00 committed by Xiang Xiao
parent 1dd8178bdc
commit 9fb84700a8

View file

@ -148,17 +148,6 @@ FAR struct can_msg_s *can_get_msg(FAR struct can_txcache_s *cd_sender)
list_for_every_entry(&cd_sender->tx_sending, tmp_node,
struct can_msg_node_s, list)
{
if (tmp_node->msg.cm_hdr.ch_id == msg->cm_hdr.ch_id)
{
/* In order to prevent messages with the same ID from being
* sent out of order, as long as there is a message with the
* same ID that has not been sent in H/W, no data will be
* written to H/W
*/
return NULL;
}
if (tmp_node->msg.cm_hdr.ch_id > msg->cm_hdr.ch_id)
{
break;