projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a67abc4
)
cgroup: drop explicit NULL comparisons
author
Lennart Poettering
<lennart@poettering.net>
Mon, 10 May 2021 15:47:32 +0000
(17:47 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 11 May 2021 13:42:47 +0000
(15:42 +0200)
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index 15b84dea0629c4fd74ca3ea97f865e5920e6a756..5453b5ae969e38c7a99121173353f42f64d00297 100644
(file)
--- 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) {