git: 657fcf5807de - main - udp6: remove assignments not being used
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Jan 2022 18:30:13 UTC
The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=657fcf5807deb2fd496f544db78f9ffc4dc7f44f commit 657fcf5807deb2fd496f544db78f9ffc4dc7f44f Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2022-01-01 18:25:47 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2022-01-01 18:25:47 +0000 udp6: remove assignments not being used MFC after: 3 days Sponsored by: Netflix, Inc. --- sys/netinet6/udp6_usrreq.c | 5 ----- 1 file changed, 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"));