Skip to content

Conversation

@ngara
Copy link
Contributor

@ngara ngara commented Oct 26, 2016

The first "if (in_ext_map)" and if (ret) return ret; causes the following code if (in_ext_map) to never execute. Modified to clean it up.

if (in_ext_map) {
612 ret = true;
613 }
614
615 if (ret) {
616 return ret;
617 }
618
619 if (ink_hash_table_lookup(our_map, virt_ip, &hash_value) != 0) {
const: At condition in_ext_map, the value of in_ext_map must be equal to 0.
dead_error_condition: The condition in_ext_map cannot be true.
620 if (in_ext_map) {

CID 1022007 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: ret = true;.
621 ret = true;
622 } else {
623 ret = false;
624 }
625 }

@zwoop zwoop added this to the 7.1.0 milestone Oct 26, 2016
@zwoop
Copy link
Contributor

zwoop commented Oct 26, 2016

[approve ci]

@atsci
Copy link

atsci commented Oct 26, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/990/ for details.

@atsci
Copy link

atsci commented Oct 26, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/1098/ for details.

@zwoop zwoop merged commit b2c792f into apache:master Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants