diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2022-01-01 18:25:47 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2022-01-01 18:25:47 +0000 |
commit | 657fcf5807deb2fd496f544db78f9ffc4dc7f44f (patch) | |
tree | 32647f16fda86d54116a6b4b68cff3b1243415b3 | |
parent | 4760956e9ad39b940df01477e5a86d06c39ac217 (diff) | |
download | src-657fcf5807deb2fd496f544db78f9ffc4dc7f44f.tar.gz src-657fcf5807deb2fd496f544db78f9ffc4dc7f44f.zip |
udp6: remove assignments not being used
MFC after: 3 days
Sponsored by: Netflix, Inc.
-rw-r--r-- | sys/netinet6/udp6_usrreq.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index f7c08f8fc96e..2f463da9b01b 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -342,7 +342,6 @@ int udp6_input(struct mbuf **mp, int *offp, int proto) { struct mbuf *m = *mp; - struct ifnet *ifp; struct ip6_hdr *ip6; struct udphdr *uh; struct inpcb *inp; @@ -358,8 +357,6 @@ udp6_input(struct mbuf **mp, int *offp, int proto) NET_EPOCH_ASSERT(); - ifp = m->m_pkthdr.rcvif; - if (m->m_len < off + sizeof(struct udphdr)) { m = m_pullup(m, off + sizeof(struct udphdr)); if (m == NULL) { @@ -1261,10 +1258,8 @@ static void udp6_detach(struct socket *so) { struct inpcb *inp; - struct inpcbinfo *pcbinfo; struct udpcb *up; - pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol); inp = sotoinpcb(so); KASSERT(inp != NULL, ("udp6_detach: inp == NULL")); |