From 3ed10b2ee85d06ee120cb313734a7cae9983024e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 9 Sep 2020 02:27:56 +0900 Subject: [PATCH] core/slice: explicitly specify return value (cherry picked from commit 93c5b904597ee86cbf65d8b5dc9d68428f2a2130) --- src/core/slice.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/slice.c b/src/core/slice.c index f4f63fcb5b..c6884d8c3b 100644 --- a/src/core/slice.c +++ b/src/core/slice.c @@ -383,8 +383,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], i) { if (UNIT_DEREF(member->slice) != s) -- 2.25.1