Merge pull request #361 from BU-Automation/topic/tbi/can-fix-skb-bug

can: c_can: fix "BUG! echo_skb is occupied!"
This commit is contained in:
Oleg KARFICH
2025-09-23 07:44:51 +02:00
committed by GitHub Enterprise
-3
View File
@@ -241,9 +241,6 @@ static inline u8 c_can_get_tx_free(const struct c_can_priv *priv,
u8 head = c_can_get_tx_head(ring);
u8 tail = c_can_get_tx_tail(ring);
if (priv->type == BOSCH_D_CAN)
return ring->obj_num - (ring->head - ring->tail);
/* This is not a FIFO. C/D_CAN sends out the buffers
* prioritized. The lowest buffer number wins.
*/