Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions nimble/controller/src/ble_ll_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,10 +930,13 @@ ble_ll_sched_rmv_elem_type(uint8_t type, sched_remove_cb_func remove_cb)
OS_ENTER_CRITICAL(sr);

first = TAILQ_FIRST(&g_ble_ll_sched_q);
if (first->sched_type == type) {
first_removed = 1;
if (!first) {
OS_EXIT_CRITICAL(sr);
return;
}

first_removed = first->sched_type == type;

TAILQ_FOREACH(entry, &g_ble_ll_sched_q, link) {
if (entry->sched_type != type) {
continue;
Expand Down
Loading