summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2011-07-05 05:53:18 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2011-07-05 05:53:18 +0000
commit1c98fecfa25d7802add6f889251e8f351393ed15 (patch)
tree2fb95f4f85ad415e58a497937de86a5a1a500b65 /sys/kern/uipc_mbuf.c
parenta9577b25614a9d7941e7312d225f557c79990a36 (diff)
Minor cleanup. OK blambert@
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 71019564e19..3dc1dd409ce 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.158 2011/06/23 21:42:05 ariane Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.159 2011/07/05 05:53:17 claudio Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -868,9 +868,8 @@ m_adj(struct mbuf *mp, int req_len)
len = 0;
}
}
- m = mp;
if (mp->m_flags & M_PKTHDR)
- m->m_pkthdr.len -= (req_len - len);
+ mp->m_pkthdr.len -= (req_len - len);
} else {
/*
* Trim from tail. Scan the mbuf chain,