Bluetooth: controller: legacy: Ensure that a case
statement is present
When compiling a sample like a beacon, none of the `if defined()`
statements in the switch case are actually compiled in, so the compiler
complains of an orphan mem_release();break; sequence.
Add a type that we know will always be compiled in in order to avoid
this issue.
Relates to commit 76bfea7cf9
("Bluetooth: controller: Ensure that a
`case` statement is present").
Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
f6521290e6
commit
bfd393ac62
1 changed files with 8 additions and 1 deletions
|
@ -12712,7 +12712,7 @@ void ll_rx_mem_release(void **node_rx)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* passthrough */
|
/* fall through */
|
||||||
case NODE_RX_TYPE_DC_PDU:
|
case NODE_RX_TYPE_DC_PDU:
|
||||||
#endif /* CONFIG_BT_CONN */
|
#endif /* CONFIG_BT_CONN */
|
||||||
|
|
||||||
|
@ -12761,6 +12761,13 @@ void ll_rx_mem_release(void **node_rx)
|
||||||
case NODE_RX_TYPE_MESH_REPORT:
|
case NODE_RX_TYPE_MESH_REPORT:
|
||||||
#endif /* CONFIG_BT_HCI_MESH_EXT */
|
#endif /* CONFIG_BT_HCI_MESH_EXT */
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
|
|
||||||
|
/* Ensure that at least one 'case' statement is present for this
|
||||||
|
* code block.
|
||||||
|
*/
|
||||||
|
case NODE_RX_TYPE_NONE:
|
||||||
|
LL_ASSERT(_node_rx_free->hdr.type != NODE_RX_TYPE_NONE);
|
||||||
mem_release(_node_rx_free,
|
mem_release(_node_rx_free,
|
||||||
&_radio.pkt_rx_data_free);
|
&_radio.pkt_rx_data_free);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue