Skip to content

Commit 20faf6d

Browse files
committed
p2pd: remove some dead code
Coverity: CID 739634 (#1 of 1): Dead default in switch (DEADCODE) Execution cannot reach this statement "default:". Signed-off-by: Ferry Huberts <[email protected]>
1 parent 0abbc30 commit 20faf6d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/p2pd/src/p2pd.c

-2
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,6 @@ AddUdpDestPort(const char *value,
913913
return -1;
914914
}
915915
break;
916-
case AF_INET:
917916
default:
918917
res = inet_pton(AF_INET, destAddr, &addr4.sin_addr);
919918
if (!is_broadcast(addr4) && !is_multicast(addr4)) {
@@ -942,7 +941,6 @@ AddUdpDestPort(const char *value,
942941
sizeof(addr6.sin6_addr.s6_addr));
943942
break;
944943
default:
945-
case AF_INET:
946944
new->address.v4.s_addr = addr4.sin_addr.s_addr;
947945
break;
948946
}

0 commit comments

Comments
 (0)