commit | 39f710136ef78e6b9e7e95e4e2f93045929f12e5 | [log] [tgz] |
---|---|---|
author | TaiJu Wu <tjwu1217@gmail.com> | Sat Feb 17 01:06:16 2024 +0800 |
committer | Chris Friedt <chrisfriedt@gmail.com> | Thu Mar 07 19:40:51 2024 -0500 |
tree | caf49fc5fe4d4bd3ed055342a4cd22f41c6bbd02 | |
parent | 03fce7dd3cdccef4538745ac9301a10557f483f2 [diff] |
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: TaiJu Wu <tjwu1217@gmail.com>