From: Ilya Shipitsin Date: Thu, 15 Mar 2018 11:38:38 +0000 (+0500) Subject: CLEANUP: dns: remove duplicate code in src/dns.c X-Git-Tag: v1.9-dev1~371 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=210eb259bfb2851c4af8ce7bd6f76ff68ce92661;p=thirdparty%2Fhaproxy.git CLEANUP: dns: remove duplicate code in src/dns.c issue was identified by cppcheck [src/dns.c:2037] -> [src/dns.c:2041]: (warning) Variable 'appctx->st2' is reassigned a value before the old one has been used. 'break;' missing? --- diff --git a/src/dns.c b/src/dns.c index c5bed59b1b..5fe44d4337 100644 --- a/src/dns.c +++ b/src/dns.c @@ -2027,8 +2027,6 @@ static int cli_io_handler_dump_resolvers_to_buffer(struct appctx *appctx) si->flags |= SI_FL_WAIT_ROOM; return 0; } - - appctx->st2 = STAT_ST_FIN; /* fall through */ default: