tree-wide: move variables to innermost scope

This commit is contained in:
Lennart Poettering
2021-05-10 17:47:19 +02:00
parent a481753648
commit a67abc490b

View File

@@ -203,12 +203,10 @@ void cgroup_context_remove_bpf_foreign_program(CGroupContext *c, CGroupBPFForeig
}
void cgroup_context_remove_socket_bind(CGroupSocketBindItem **head) {
CGroupSocketBindItem *h;
assert(head);
while (*head) {
h = *head;
CGroupSocketBindItem *h = *head;
LIST_REMOVE(socket_bind_items, *head, h);
free(h);
}