We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae046fe commit 92a7c77Copy full SHA for 92a7c77
subsys/llext/llext.c
@@ -82,14 +82,13 @@ struct llext *llext_by_name(const char *name)
82
int llext_iterate(int (*fn)(struct llext *ext, void *arg), void *arg)
83
{
84
sys_snode_t *node;
85
- unsigned int i;
86
int ret = 0;
87
88
k_mutex_lock(&llext_lock, K_FOREVER);
89
90
- for (node = sys_slist_peek_head(&_llext_list), i = 0;
+ for (node = sys_slist_peek_head(&_llext_list);
91
node;
92
- node = sys_slist_peek_next(node), i++) {
+ node = sys_slist_peek_next(node)) {
93
struct llext *ext = CONTAINER_OF(node, struct llext, _llext_list);
94
95
ret = fn(ext, arg);
0 commit comments