Skip to content
Commit 39f71013 authored by TaiJu Wu's avatar TaiJu Wu Committed by Chris Friedt
Browse files

sched: finalize_cancel_locked can early return



The code `SYS_SLIST_FOR_EACH_CONTAINER_SAFE` just for remove work
from `pending_cancels`.
After removing work successfully, the function can return early.
It is unnecessary to iterate continuously.

Signed-off-by: default avatarTaiJu Wu <tjwu1217@gmail.com>
parent 03fce7dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment