From: Lennart Poettering Date: Mon, 10 May 2021 15:47:19 +0000 (+0200) Subject: tree-wide: move variables to innermost scope X-Git-Tag: v249-rc1~236^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a67abc490b1833a127e9ebdf62204a6b484ec0d1;p=thirdparty%2Fsystemd.git tree-wide: move variables to innermost scope --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 961f112eb25..15b84dea062 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -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); }