summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-01-09 16:37:27 +0000
committervisa <visa@openbsd.org>2019-01-09 16:37:27 +0000
commit5af47988b2edcf0a3c84eaad8d0127f39e42aa30 (patch)
tree1cfddf23edd4e55bd05e34f6b2ca49526b788861
parentMake arm64 efiboot can boot from partitions other than "a". (diff)
downloadwireguard-openbsd-5af47988b2edcf0a3c84eaad8d0127f39e42aa30.tar.xz
wireguard-openbsd-5af47988b2edcf0a3c84eaad8d0127f39e42aa30.zip
Eliminate an else branch from m_extunref().
OK millert@ bluhm@
-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);