summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-30 23:30:51 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-07-30 23:30:51 +0000
commitf507318c310ac11f1b9566eafd4ab4ee7497fa55 (patch)
tree61244850786ec763fbe5e045b24456d09edf7a41
parent5e6b88c9215f0ae541960833bfd80d49bcaa5b42 (diff)
no need for check if m0 is NULL, as we have touched it already.
From: tedu <grendel@zeitbombe.org>
-rw-r--r--sys/net/if_strip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_strip.c b/sys/net/if_strip.c
index f8bb756d243..d340eaffa4a 100644
--- a/sys/net/if_strip.c
+++ b/sys/net/if_strip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_strip.c,v 1.20 2002/06/30 13:04:36 itojun Exp $ */
+/* $OpenBSD: if_strip.c,v 1.21 2002/07/30 23:30:50 itojun Exp $ */
/* $NetBSD: if_strip.c,v 1.2.4.3 1996/08/03 00:58:32 jtc Exp $ */
/* from: NetBSD: if_sl.c,v 1.38 1996/02/13 22:00:23 christos Exp $ */
@@ -647,7 +647,7 @@ strip_send(sc, m0)
/* The header has been enqueued in clear; undo the M_PREPEND() of the header. */
m0->m_data += sizeof(struct st_header);
m0->m_len -= sizeof(struct st_header);
- if (m0 && m0->m_flags & M_PKTHDR) {
+ if (m0->m_flags & M_PKTHDR) {
m0->m_pkthdr.len -= sizeof(struct st_header);
}
#ifdef DIAGNOSTIC