From: Lennart Poettering Date: Mon, 10 May 2021 15:47:32 +0000 (+0200) Subject: cgroup: drop explicit NULL comparisons X-Git-Tag: v249-rc1~236^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F19567%2Fhead;p=thirdparty%2Fsystemd.git cgroup: drop explicit NULL comparisons --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 15b84dea062..5453b5ae969 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1581,7 +1581,7 @@ static bool unit_get_needs_socket_bind(Unit *u) { if (!c) return false; - return c->socket_bind_allow != NULL || c->socket_bind_deny != NULL; + return c->socket_bind_allow || c->socket_bind_deny; } static CGroupMask unit_get_cgroup_mask(Unit *u) {