commit | 94b752d2b4fba067da7607e2f28016386405efc8 | [log] [tgz] |
---|---|---|
author | Pisit Sawangvonganan <pisit@ndrsolution.com> | Wed Jun 26 00:35:10 2024 +0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Jul 01 16:08:05 2024 -0400 |
tree | e8bf1982bdb3233813363919de915c8c3d2780ff | |
parent | f371ea4b978e2416683d58609dc71dfd68e2c2a9 [diff] |
lib: smf: use `while (true)` in `get_child_of` for better clarity Replace the condition-less `for` loop (`;;`) in `get_child_of` with a `while (true)` loop and remove the redundant `return NULL;` at the end, which is never reached. This change aims to enhance readability since `while (true)` is better suited for this scenario. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>