diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-10 17:47:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-11 15:42:47 +0200 |
commit | 11ab01e439e53d791c01fe980516e161ea382a32 (patch) | |
tree | 3231dd9b27eaa9b8ccb19478f7bc286054d752be /src | |
parent | tree-wide: move variables to innermost scope (diff) | |
download | systemd-11ab01e439e53d791c01fe980516e161ea382a32.tar.xz systemd-11ab01e439e53d791c01fe980516e161ea382a32.zip |
cgroup: drop explicit NULL comparisons
Diffstat (limited to 'src')
-rw-r--r-- | src/core/cgroup.c | 2 |
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) { |