From f29be97ac7255d85372479323f460aeaba81d7ba Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Wed, 14 Aug 2024 14:49:51 +0200 Subject: [PATCH] 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. --- src/cfgparse-global.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cfgparse-global.c b/src/cfgparse-global.c index 7908c5d9a..0e4a7e914 100644 --- a/src/cfgparse-global.c +++ b/src/cfgparse-global.c @@ -1294,7 +1294,6 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm) else if (rc > 0) { ha_warning("parsing [%s:%d] : %s\n", file, linenum, errmsg); err_code |= ERR_WARN; - goto out; } goto out; }