Bluetooth: controller: Avoid warning with privacy disabled
To avoid warnings (seen on some machines) that a function reaches its end without returning a value, conditionally compile the function in a way that this cannot happen. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
52ee6622c0
commit
77b0108afd
1 changed files with 3 additions and 2 deletions
|
@ -247,13 +247,14 @@ bool ctrl_irk_whitelisted(u8_t rl_idx)
|
||||||
|
|
||||||
struct ll_filter *ctrl_filter_get(bool whitelist)
|
struct ll_filter *ctrl_filter_get(bool whitelist)
|
||||||
{
|
{
|
||||||
|
#if defined(CONFIG_BLUETOOTH_CONTROLLER_PRIVACY)
|
||||||
if (whitelist) {
|
if (whitelist) {
|
||||||
return &wl_filter;
|
return &wl_filter;
|
||||||
}
|
}
|
||||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_PRIVACY)
|
|
||||||
return &rl_filter;
|
return &rl_filter;
|
||||||
#else
|
#else
|
||||||
LL_ASSERT(0);
|
LL_ASSERT(whitelist);
|
||||||
|
return &wl_filter;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue