CLEANUP: dumpstats: Removing useless variables allocation

In dump_servers_state(), srv_time_since_last_change, bk_f_forced_id, srv_f_forced_id variables
were firstly set to zero and immediately reassigned to another value while never been accessed in between.

Sounds like a useless initiazation. So let's make only the useful allocation.
This commit is contained in:
Erwan Velu 2016-08-30 11:48:44 +02:00 committed by Willy Tarreau
parent b12ff9a201
commit f714fb533e

View File

@ -3112,9 +3112,6 @@ static int dump_servers_state(struct stream_interface *si, struct chunk *buf)
for (; appctx->ctx.server_state.sv != NULL; appctx->ctx.server_state.sv = srv->next) { for (; appctx->ctx.server_state.sv != NULL; appctx->ctx.server_state.sv = srv->next) {
srv = appctx->ctx.server_state.sv; srv = appctx->ctx.server_state.sv;
srv_addr[0] = '\0'; srv_addr[0] = '\0';
srv_time_since_last_change = 0;
bk_f_forced_id = 0;
srv_f_forced_id = 0;
switch (srv->addr.ss_family) { switch (srv->addr.ss_family) {
case AF_INET: case AF_INET: