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.
This commit is contained in:
William Lallemand 2025-02-12 12:29:48 +01:00
parent 313eeae7db
commit 5c2039b5b8

View File

@ -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();