Skip to content

Commit

Permalink
Bluetooth: Controller: Fix a couple of compiler warnings
Browse files Browse the repository at this point in the history
Remove set but unused enable variable

Flag sync_iso_create_get() function

Signed-off-by: Troels Nilsson <trnn@demant.com>
  • Loading branch information
Tronil authored and fabiobaltieri committed Jul 5, 2023
1 parent 287eb04 commit c7627ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions subsys/bluetooth/controller/hci/hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions subsys/bluetooth/controller/ll_sw/ull_scan_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit c7627ca

Please sign in to comment.