diff --git a/src/basic/util.c b/src/basic/util.c index a2a75bdd7f5..cc50c9aa7d4 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -2622,14 +2622,13 @@ int parse_cpu_set_and_warn( CPU_SET_S(cpu, CPU_ALLOC_SIZE(ncpus), c); } - if (!isempty(rvalue)) - log_syntax(unit, LOG_ERR, filename, line, 0, "Trailing garbage, ignoring."); /* On success, sets *cpu_set and returns ncpus for the system. */ if (c) { *cpu_set = c; c = NULL; } + return (int) ncpus; }