diff --git a/resource/planner/c/planner_c_interface.cpp b/resource/planner/c/planner_c_interface.cpp index f63f79502..ad3fadf44 100644 --- a/resource/planner/c/planner_c_interface.cpp +++ b/resource/planner/c/planner_c_interface.cpp @@ -628,9 +628,8 @@ extern "C" int planner_reduce_span (planner_t *ctx, update_mintime_resource_tree (ctx, list); rc = 0; } else { - // Error + // Error; rc already -1 errno = EINVAL; - rc - 1; } return rc;