Skip to content

Commit b5cba3c

Browse files
cvinayaknashif
authored andcommitted
Bluetooth: controller: Minor identation changes
Minor changes to indentations in advanced scheduling implementation. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent b150d3a commit b5cba3c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

subsys/bluetooth/controller/ll_sw/ull_sched.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,14 @@ void ull_sched_mfy_win_offset_select(void *param)
262262
}
263263

264264
if (offset_index_s < OFFSET_S_MAX) {
265-
conn->llcp_cu.win_offset_us = win_offset_s *
266-
CONN_INT_UNIT_US;
265+
conn->llcp_cu.win_offset_us = win_offset_s * CONN_INT_UNIT_US;
267266
sys_put_le16(win_offset_s,
268267
(void *)conn->llcp.conn_upd.pdu_win_offset);
269268
/* move to offset calculated state */
270269
conn->llcp_cu.state = LLCP_CUI_STATE_OFFS_RDY;
271270
} else if (!has_offset_s) {
272271
conn->llcp_cu.win_offset_us = win_offset_m[0] *
273-
CONN_INT_UNIT_US;
272+
CONN_INT_UNIT_US;
274273
sys_put_le16(win_offset_m[0],
275274
(void *)conn->llcp.conn_upd.pdu_win_offset);
276275
/* move to offset calculated state */
@@ -448,8 +447,7 @@ static void win_offset_calc(struct ll_conn *conn_curr, uint8_t is_select,
448447
#endif
449448

450449
ticks_slot_abs_curr += conn->evt.ticks_slot +
451-
HAL_TICKER_US_TO_TICKS(
452-
CONN_INT_UNIT_US);
450+
HAL_TICKER_US_TO_TICKS(CONN_INT_UNIT_US);
453451

454452
if (conn->lll.role) {
455453
ticks_slot_margin =
@@ -524,7 +522,7 @@ static void win_offset_calc(struct ll_conn *conn_curr, uint8_t is_select,
524522
offset_index++;
525523

526524
ticks_to_expire_prev += HAL_TICKER_US_TO_TICKS(
527-
CONN_INT_UNIT_US);
525+
CONN_INT_UNIT_US);
528526
}
529527

530528
*ticks_to_offset_next = ticks_to_expire_prev;
@@ -558,8 +556,7 @@ static void after_mstr_offset_get(uint16_t conn_interval, uint32_t ticks_slot,
558556
}
559557

560558
if ((*win_offset_us & BIT(31)) == 0) {
561-
uint32_t conn_interval_us = conn_interval *
562-
CONN_INT_UNIT_US;
559+
uint32_t conn_interval_us = conn_interval * CONN_INT_UNIT_US;
563560

564561
while (*win_offset_us > conn_interval_us) {
565562
*win_offset_us -= conn_interval_us;

0 commit comments

Comments
 (0)