aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-05-19 05:37:58 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-05-19 05:37:58 +0000
commit4b06dee1e5e154d66dbe4dfb3b251b2e31050919 (patch)
tree9d00f1282e0d6b8d5fad27cd3c754bf51330c1fb /sys
parent3535fae8477ff568b74041cbc22842ae03032605 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_usrreq.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 8711a1545687..45f0adf1e25b 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1678,9 +1678,7 @@ static void
unp_disconnect(struct unpcb *unp, struct unpcb *unp2)
{
struct socket *so, *so2;
-#ifdef INVARIANTS
- int freed;
-#endif
+ int freed __unused;
KASSERT(unp2 != NULL, ("unp_disconnect: unp2 == NULL"));
@@ -1716,15 +1714,9 @@ unp_disconnect(struct unpcb *unp, struct unpcb *unp2)
soisdisconnected(so2);
break;
}
-#ifdef INVARIANTS
- freed =
-#endif
- unp_pcb_rele(unp);
+ freed = unp_pcb_rele(unp);
MPASS(freed == 0);
-#ifdef INVARIANTS
- freed =
-#endif
- unp_pcb_rele(unp2);
+ freed = unp_pcb_rele(unp2);
MPASS(freed == 0);
}