diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-09 02:27:56 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-09 02:34:38 +0900 |
commit | 93c5b904597ee86cbf65d8b5dc9d68428f2a2130 (patch) | |
tree | e17b026666fe08ec48bdc2785d55afc9da5ffd1f /src/core/slice.c | |
parent | 38104ee2a545a0e06fc261c0161aed322285f363 (diff) | |
download | systemd-93c5b904597ee86cbf65d8b5dc9d68428f2a2130.tar.gz |
core/slice: explicitly specify return value
Diffstat (limited to 'src/core/slice.c')
-rw-r--r-- | src/core/slice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/slice.c b/src/core/slice.c index aa7e7555e5..49541aacab 100644 --- a/src/core/slice.c +++ b/src/core/slice.c @@ -381,8 +381,10 @@ static int slice_freezer_action(Unit *s, FreezerAction action) { assert(s); assert(IN_SET(action, FREEZER_FREEZE, FREEZER_THAW)); - if (!slice_freezer_action_supported_by_children(s)) - return log_unit_warning(s, "Requested freezer operation is not supported by all children of the slice"); + if (!slice_freezer_action_supported_by_children(s)) { + log_unit_warning(s, "Requested freezer operation is not supported by all children of the slice"); + return 0; + } HASHMAP_FOREACH_KEY(v, member, s->dependencies[UNIT_BEFORE]) { if (UNIT_DEREF(member->slice) != s) |