summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-10 17:47:32 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-11 15:42:47 +0200
commit11ab01e439e53d791c01fe980516e161ea382a32 (patch)
tree3231dd9b27eaa9b8ccb19478f7bc286054d752be /src
parenta67abc490b1833a127e9ebdf62204a6b484ec0d1 (diff)
downloadsystemd-11ab01e439e53d791c01fe980516e161ea382a32.tar.gz
cgroup: drop explicit NULL comparisons
Diffstat (limited to 'src')
-rw-r--r--src/core/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 15b84dea06..5453b5ae96 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) {