Skip to content

Commit 630eb03

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Remove redundant assertion check
Remove redundant assertion check, and minor indentation fix to correct the alignment of function call. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent d96aa6d commit 630eb03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subsys/bluetooth/controller/ll_sw/ull_sync.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ uint8_t ll_sync_create_cancel(void **rx)
338338
LL_ASSERT(sync_handle <= UINT8_MAX);
339339

340340
/* Sync is not established yet, so stop sync ticker */
341-
int err = ull_ticker_stop_with_mark(
342-
TICKER_ID_SCAN_SYNC_BASE + (uint8_t)sync_handle, sync, &sync->lll);
343-
344-
LL_ASSERT(err == 0 || err == -EALREADY);
341+
const int err =
342+
ull_ticker_stop_with_mark((TICKER_ID_SCAN_SYNC_BASE +
343+
(uint8_t)sync_handle),
344+
sync, &sync->lll);
345345
if (err != 0 && err != -EALREADY) {
346346
return BT_HCI_ERR_CMD_DISALLOWED;
347347
}

0 commit comments

Comments
 (0)