bluetooth: controller: Fix for uninitialized data compile error
Due to conditional compile path ending in LL_ASSERT(0), the compiler sees code following the assert as using uninitialized variables. Signed-off-by: Morten Priess <mtpr@oticon.com>
This commit is contained in:
parent
1498ac3c07
commit
69ff0f310e
2 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,7 @@ static int prepare_cb(struct lll_prepare_param *prepare_param)
|
|||
&lll->data_chan_map[0],
|
||||
lll->data_chan_count);
|
||||
#else /* !CONFIG_BT_CTLR_CHAN_SEL_2 */
|
||||
data_chan_use = 0;
|
||||
LL_ASSERT(0);
|
||||
#endif /* !CONFIG_BT_CTLR_CHAN_SEL_2 */
|
||||
} else {
|
||||
|
|
|
@ -131,6 +131,7 @@ static int prepare_cb(struct lll_prepare_param *prepare_param)
|
|||
&lll->data_chan_map[0],
|
||||
lll->data_chan_count);
|
||||
#else /* !CONFIG_BT_CTLR_CHAN_SEL_2 */
|
||||
data_chan_use = 0;
|
||||
LL_ASSERT(0);
|
||||
#endif /* !CONFIG_BT_CTLR_CHAN_SEL_2 */
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue