core: add an assert to guide static analysis
Follow-up for 4fb0d2dc14
CID#1533110
This commit is contained in:
+1
-1
@@ -4572,7 +4572,7 @@ static uint64_t unit_get_effective_limit_one(Unit *u, CGroupLimitType type) {
|
||||
assert_not_reached();
|
||||
}
|
||||
|
||||
cc = unit_get_cgroup_context(u);
|
||||
cc = ASSERT_PTR(unit_get_cgroup_context(u));
|
||||
switch (type) {
|
||||
/* Note: on legacy/hybrid hierarchies memory_max stays CGROUP_LIMIT_MAX unless configured
|
||||
* explicitly. Effective value of MemoryLimit= (cgroup v1) is not implemented. */
|
||||
|
||||
Reference in New Issue
Block a user