mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
cgroup: drop explicit NULL comparisons
This commit is contained in:
parent
a67abc490b
commit
11ab01e439
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user