Skip to content
Snippets Groups Projects
Unverified Commit 810608e4 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #8335 from OTAkeys/pr/can_fix_fall_through

can: fix fall through error
parents 03fdaaeb fb393905
No related branches found
No related tags found
No related merge requests found
...@@ -174,7 +174,7 @@ int conn_can_isotp_send(conn_can_isotp_t *conn, const void *buf, size_t size, in ...@@ -174,7 +174,7 @@ int conn_can_isotp_send(conn_can_isotp_t *conn, const void *buf, size_t size, in
if (msg.content.ptr == conn) { if (msg.content.ptr == conn) {
ret = -EIO; ret = -EIO;
} }
/* No break */ /* Fall through */
case CAN_MSG_TX_CONFIRMATION: case CAN_MSG_TX_CONFIRMATION:
#ifdef MODULE_CONN_CAN_ISOTP_MULTI #ifdef MODULE_CONN_CAN_ISOTP_MULTI
if (msg.content.ptr != conn) { if (msg.content.ptr != conn) {
......
...@@ -609,6 +609,7 @@ static void _isotp_rx_timeout_task(struct isotp *isotp) ...@@ -609,6 +609,7 @@ static void _isotp_rx_timeout_task(struct isotp *isotp)
case ISOTP_SENDING_FC: case ISOTP_SENDING_FC:
DEBUG("_isotp_rx_timeout_task: FC tx conf timeout\n"); DEBUG("_isotp_rx_timeout_task: FC tx conf timeout\n");
raw_can_abort(isotp->entry.ifnum, isotp->rx.tx_handle); raw_can_abort(isotp->entry.ifnum, isotp->rx.tx_handle);
/* Fall through */
case ISOTP_WAIT_CF: case ISOTP_WAIT_CF:
DEBUG("_isotp_rx_timeout_task: free rx buf\n"); DEBUG("_isotp_rx_timeout_task: free rx buf\n");
gnrc_pktbuf_release(isotp->rx.snip); gnrc_pktbuf_release(isotp->rx.snip);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment