aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2021-12-03 04:12:40 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2021-12-03 04:12:40 +0000
commit651a545143d2839f84a016f4e755a0b082ecfd50 (patch)
treedd120788825ab610315561bbef8f5f19bcd6e67b /sys/netinet
parentbd1d0850452ecd0bfa6a2ae4cd9938d302a59758 (diff)
downloadsrc-main.tar.gz
src-main.zip
udp_detach(): fix set but not used warningHEADmain
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/udp_usrreq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index a6be949286b8..237287fef1e6 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1695,10 +1695,8 @@ static void
udp_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, ("udp_detach: inp == NULL"));
KASSERT(inp->inp_faddr.s_addr == INADDR_ANY,