Skip to content

Commit c7627ca

Browse files
Tronilfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 287eb04 commit c7627ca

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

subsys/bluetooth/controller/hci/hci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3499,7 +3499,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt)
34993499
struct bt_hci_cp_le_set_ext_adv_enable *cmd = (void *)buf->data;
35003500
struct bt_hci_ext_adv_set *s;
35013501
uint8_t set_num;
3502-
uint8_t enable;
35033502
uint8_t status;
35043503
uint8_t handle;
35053504

@@ -3522,7 +3521,6 @@ static void le_set_ext_adv_enable(struct net_buf *buf, struct net_buf **evt)
35223521
}
35233522

35243523
s = (void *) cmd->s;
3525-
enable = cmd->enable;
35263524
do {
35273525
status = ll_adv_set_by_hci_handle_get(s->handle, &handle);
35283526
if (status) {

subsys/bluetooth/controller/ll_sw/ull_scan_aux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ static inline struct ll_scan_aux_set *aux_acquire(void);
5050
static inline void aux_release(struct ll_scan_aux_set *aux);
5151
static inline uint8_t aux_handle_get(struct ll_scan_aux_set *aux);
5252
static inline struct ll_sync_set *sync_create_get(struct ll_scan_set *scan);
53+
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC)
5354
static inline struct ll_sync_iso_set *
5455
sync_iso_create_get(struct ll_sync_set *sync);
56+
#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC */
5557
static void done_disabled_cb(void *param);
5658
static void flush_safe(void *param);
5759
static void flush(void *param);
@@ -1082,6 +1084,7 @@ static inline struct ll_sync_set *sync_create_get(struct ll_scan_set *scan)
10821084
#endif /* !CONFIG_BT_CTLR_SYNC_PERIODIC */
10831085
}
10841086

1087+
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC)
10851088
static inline struct ll_sync_iso_set *
10861089
sync_iso_create_get(struct ll_sync_set *sync)
10871090
{
@@ -1091,6 +1094,7 @@ static inline struct ll_sync_iso_set *
10911094
return NULL;
10921095
#endif /* !CONFIG_BT_CTLR_SYNC_ISO */
10931096
}
1097+
#endif /* CONFIG_BT_CTLR_SYNC_PERIODIC */
10941098

10951099
static void done_disabled_cb(void *param)
10961100
{

0 commit comments

Comments
 (0)