Remove dead code.
Reported by: Coverity CID: 1018052 MFC after: 1 week
This commit is contained in:
parent
9dbdda24ab
commit
3619933ead
@ -5047,7 +5047,6 @@ sctp_find_ifa_by_addr(struct sockaddr *addr, uint32_t vrf_id, int holds_lock)
|
||||
|
||||
vrf = sctp_find_vrf(vrf_id);
|
||||
if (vrf == NULL) {
|
||||
stage_right:
|
||||
if (holds_lock == 0)
|
||||
SCTP_IPI_ADDR_RUNLOCK();
|
||||
return (NULL);
|
||||
@ -5067,15 +5066,6 @@ sctp_find_ifa_by_addr(struct sockaddr *addr, uint32_t vrf_id, int holds_lock)
|
||||
return (NULL);
|
||||
}
|
||||
LIST_FOREACH(sctp_ifap, hash_head, next_bucket) {
|
||||
if (sctp_ifap == NULL) {
|
||||
#ifdef INVARIANTS
|
||||
panic("Huh LIST_FOREACH corrupt");
|
||||
goto stage_right;
|
||||
#else
|
||||
SCTP_PRINTF("LIST corrupt of sctp_ifap's?\n");
|
||||
goto stage_right;
|
||||
#endif
|
||||
}
|
||||
if (addr->sa_family != sctp_ifap->address.sa.sa_family)
|
||||
continue;
|
||||
#ifdef INET
|
||||
|
Loading…
Reference in New Issue
Block a user