mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
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:
parent
b12ff9a201
commit
f714fb533e
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user