summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-01-09 16:37:28 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-01-09 16:37:28 +0000
commit81badc8ecdc79b7f9a86a0d42ff7c50b076667ff (patch)
treef366e39f8482ba97f82cb3ffc713e7ad3464be4c /sys/kern/uipc_mbuf.c
parente62275310886aa889a28c26e45eb1f0a10903ad0 (diff)
Eliminate an else branch from m_extunref().
OK millert@ bluhm@
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 99c1fab9875..1ae467444a7 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.264 2019/01/08 13:01:50 bluhm Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.265 2019/01/09 16:37:27 visa Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -468,7 +468,7 @@ m_extref(struct mbuf *o, struct mbuf *n)
static inline u_int
m_extunref(struct mbuf *m)
{
- int refs = 1;
+ int refs = 0;
if (!MCLISREFERENCED(m))
return (0);
@@ -479,8 +479,8 @@ m_extunref(struct mbuf *m)
m->m_ext.ext_prevref;
m->m_ext.ext_prevref->m_ext.ext_nextref =
m->m_ext.ext_nextref;
- } else
- refs = 0;
+ refs = 1;
+ }
mtx_leave(&m_extref_mtx);
return (refs);