]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup: drop explicit NULL comparisons 19567/head
authorLennart Poettering <lennart@poettering.net>
Mon, 10 May 2021 15:47:32 +0000 (17:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 May 2021 13:42:47 +0000 (15:42 +0200)
src/core/cgroup.c

index 15b84dea0629c4fd74ca3ea97f865e5920e6a756..5453b5ae969e38c7a99121173353f42f64d00297 100644 (file)
@@ -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) {