From 11ab01e439e53d791c01fe980516e161ea382a32 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 10 May 2021 17:47:32 +0200 Subject: [PATCH] cgroup: drop explicit NULL comparisons --- src/core/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {