mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-28 17:21:32 +02:00
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:
parent
74bc6f3d66
commit
f29be97ac7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user