BUG/MINOR: cfgparse-global: remove redundant goto

In the case, when the given keyword was found in the global 'cfg_kws' list, we
go to 'out' label anyway, after testing rc returned by the keyword's parser. So
there is not a much gain if we perform 'goto out' jump specifically when rc > 0.
This commit is contained in:
Valentine Krasnobaeva 2024-08-14 14:49:51 +02:00 committed by William Lallemand
parent 74bc6f3d66
commit f29be97ac7

View File

@ -1294,7 +1294,6 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
else if (rc > 0) { else if (rc > 0) {
ha_warning("parsing [%s:%d] : %s\n", file, linenum, errmsg); ha_warning("parsing [%s:%d] : %s\n", file, linenum, errmsg);
err_code |= ERR_WARN; err_code |= ERR_WARN;
goto out;
} }
goto out; goto out;
} }