Skip to content

Commit 4c3d76b

Browse files
ppryga-nordiccfriedt
authored andcommitted
Bluetooth: controller: remove extra_data use in BIG create and terminate
extra_data is not used by ll_big_create and ll_big_terminate. extra_data_prev and extra_data_new are optional arguments for ull_adv_sync_pdu_alloc. Signed-off-by: Piotr Pryga <[email protected]>
1 parent bef9d14 commit 4c3d76b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv_iso.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ uint8_t ll_big_create(uint8_t big_handle, uint8_t adv_handle, uint8_t num_bis,
6060
{
6161
uint8_t field_data[1 + sizeof(uint8_t *)];
6262
struct ull_adv_ext_hdr_data hdr_data;
63-
void *extra_data_prev, *extra_data;
6463
struct lll_adv_sync *lll_adv_sync;
6564
struct lll_adv_iso *lll_adv_iso;
6665
struct pdu_adv *pdu_prev, *pdu;
@@ -140,7 +139,7 @@ uint8_t ll_big_create(uint8_t big_handle, uint8_t adv_handle, uint8_t num_bis,
140139

141140
/* Allocate next PDU */
142141
err = ull_adv_sync_pdu_alloc(adv, ULL_ADV_PDU_EXTRA_DATA_ALLOC_IF_EXIST, &pdu_prev, &pdu,
143-
&extra_data_prev, &extra_data, &ter_idx);
142+
NULL, NULL, &ter_idx);
144143
if (err) {
145144
return err;
146145
}
@@ -227,7 +226,6 @@ uint8_t ll_big_test_create(uint8_t big_handle, uint8_t adv_handle,
227226

228227
uint8_t ll_big_terminate(uint8_t big_handle, uint8_t reason)
229228
{
230-
void *extra_data_prev, *extra_data;
231229
struct lll_adv_sync *lll_adv_sync;
232230
struct lll_adv_iso *lll_adv_iso;
233231
struct pdu_adv *pdu_prev, *pdu;
@@ -255,7 +253,7 @@ uint8_t ll_big_terminate(uint8_t big_handle, uint8_t reason)
255253

256254
/* Allocate next PDU */
257255
err = ull_adv_sync_pdu_alloc(adv, ULL_ADV_PDU_EXTRA_DATA_ALLOC_IF_EXIST, &pdu_prev, &pdu,
258-
&extra_data_prev, &extra_data, &ter_idx);
256+
NULL, NULL, &ter_idx);
259257
if (err) {
260258
return err;
261259
}

0 commit comments

Comments
 (0)