Browse Source

Bluetooth: Controller: Fix a couple of compiler warnings

Remove set but unused enable variable

Flag sync_iso_create_get() function

Signed-off-by: Troels Nilsson <trnn@demant.com>
pull/57691/head
Troels Nilsson 2 years ago committed by Fabio Baltieri
parent
commit
c7627cab29
  1. 2
      subsys/bluetooth/controller/hci/hci.c
  2. 4
      subsys/bluetooth/controller/ll_sw/ull_scan_aux.c

2
subsys/bluetooth/controller/hci/hci.c

@ -3499,7 +3499,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt) @@ -3499,7 +3499,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt)
struct bt_hci_cp_le_set_ext_adv_enable *cmd = (void *)buf->data;
struct bt_hci_ext_adv_set *s;
uint8_t set_num;
uint8_t enable;
uint8_t status;
uint8_t handle;
@ -3522,7 +3521,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt) @@ -3522,7 +3521,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt)
}
s = (void *) cmd->s;
enable = cmd->enable;
do {
status = ll_adv_set_by_hci_handle_get(s->handle, &handle);
if (status) {

4
subsys/bluetooth/controller/ll_sw/ull_scan_aux.c

@ -50,8 +50,10 @@ static inline struct ll_scan_aux_set *aux_acquire(void); @@ -50,8 +50,10 @@ static inline struct ll_scan_aux_set *aux_acquire(void);
static inline void aux_release(struct ll_scan_aux_set *aux);
static inline uint8_t aux_handle_get(struct ll_scan_aux_set *aux);
static inline struct ll_sync_set *sync_create_get(struct ll_scan_set *scan);
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC)
static inline struct ll_sync_iso_set *
sync_iso_create_get(struct ll_sync_set *sync);
#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC */
static void done_disabled_cb(void *param);
static void flush_safe(void *param);
static void flush(void *param);
@ -1082,6 +1084,7 @@ static inline struct ll_sync_set *sync_create_get(struct ll_scan_set *scan) @@ -1082,6 +1084,7 @@ static inline struct ll_sync_set *sync_create_get(struct ll_scan_set *scan)
#endif /* !CONFIG_BT_CTLR_SYNC_PERIODIC */
}
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC)
static inline struct ll_sync_iso_set *
sync_iso_create_get(struct ll_sync_set *sync)
{
@ -1091,6 +1094,7 @@ static inline struct ll_sync_iso_set * @@ -1091,6 +1094,7 @@ static inline struct ll_sync_iso_set *
return NULL;
#endif /* !CONFIG_BT_CTLR_SYNC_ISO */
}
#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC */
static void done_disabled_cb(void *param)
{

Loading…
Cancel
Save