udp6: remove assignments not being used

MFC after:	3 days
Sponsored by:	Netflix, Inc.
This commit is contained in:
Michael Tuexen 2022-01-01 19:25:47 +01:00
parent 4760956e9a
commit 657fcf5807

View File

@ -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"));