From 5c2039b5b8fecfd3019be35e4ae7b549ead895ee Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 12 Feb 2025 12:29:48 +0100 Subject: [PATCH] CLEANUP: mworker: "program" section does not have a post_section_parser anymore The "program" section does not have a post_section_parser anymore so no need to make an exception for it. --- src/cfgparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index cbd006bb7..bf8bd14e8 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2576,8 +2576,8 @@ int parse_cfg(const struct cfgfile *cfg) if (pcs && pcs->post_section_parser) { int status; - /* don't call post_section_parser in MODE_DISCOVERY, except program section */ - if ((global.mode & MODE_DISCOVERY) && (strcmp(pcs->section_name, "program") != 0)) + /* don't call post_section_parser in MODE_DISCOVERY */ + if (global.mode & MODE_DISCOVERY) goto section_parser; status = pcs->post_section_parser();