Glusterfsd: Unreachable statements

Issue: Event unreachable at line number 1111 in glusterfsd/src/glusterfsd.c

There was a statement in outer if block after the break statement.
Ideally the break statement should be inside the inner if block so
that the statement will not become unreachable. I put the break
inside the inner if block.

Change-Id: Id4917305333e1638f35b3f2fb59ac42e62a12d02
BUG: 789278
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
This commit is contained in:
Sanju Rakonde 2017-09-25 12:34:05 +05:30 committed by Jeff Darcy
parent 83d2bf8815
commit b269089a33

View File

@ -1115,10 +1115,10 @@ parse_opts (int key, char *arg, struct argp_state *state)
cmd_args->brick_port = n;
port_str = strtok_r (NULL, ",", &tmp_str);
if (port_str) {
if (gf_string2uint_base10 (port_str, &n) == 0)
if (gf_string2uint_base10 (port_str, &n) == 0) {
cmd_args->brick_port2 = n;
break;
break;
}
argp_failure (state, -1, 0,
"wrong brick (listen) port %s", arg);
}