Skip to content
Commit 2e0e9b1a authored by Pisit Sawangvonganan's avatar Pisit Sawangvonganan Committed by Anas Nashif
Browse files

kernel: reduce `k_spin_unlock` calls using `if-else if-else` structure



Reduce `k_spin_unlock` calls in `k_obj_core_stats_xxx` functions by
consolidating error handling into an `if-else if-else` structure and
using a single return variable `rv`.

Signed-off-by: default avatarPisit Sawangvonganan <pisit@ndrsolution.com>
parent 7db18ab7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment