]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/slice: explicitly specify return value
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Sep 2020 17:27:56 +0000 (02:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Sep 2020 17:34:38 +0000 (02:34 +0900)
src/core/slice.c

index aa7e7555e5071fc36f7448444375f203cc5fdf2d..49541aacab452f97048a4a80d0e03e1f604364a1 100644 (file)
@@ -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)