commit | 2e0e9b1a18c8abd9e70e16bed5c700c3277a25c5 | [log] [tgz] |
---|---|---|
author | Pisit Sawangvonganan <pisit@ndrsolution.com> | Mon Jul 08 03:21:36 2024 +0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Sat Jul 27 20:48:07 2024 +0300 |
tree | 3ae317ee66641326b4e1b8edf306b3b3253ad182 | |
parent | 7db18ab72161b74b463c3cfcdd34e7c2f3e8cdbe [diff] |
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: Pisit Sawangvonganan <pisit@ndrsolution.com>