summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-04-30 18:42:44 +0000
committergreen <green@FreeBSD.org>2000-04-30 18:42:44 +0000
commit519103d39378c862a7eed433bf8381b3673dac2c (patch)
tree9daa61c8d4a62ec3be4666b0318605808b4887a6
parent74f13b77937de22679215590389e3663e7b3baee (diff)
downloadFreeBSD-src-519103d39378c862a7eed433bf8381b3673dac2c.zip
FreeBSD-src-519103d39378c862a7eed433bf8381b3673dac2c.tar.gz
For the M_PREPEND macro, remove an initial mbuf NULL check I added. It
was added accidentally, and although not terrible, it would improperly hide the bug of calling M_PREPEND with a NULL mbuf argument. Submitted by: jlemon (ISTR)
-rw-r--r--sys/sys/mbuf.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index d278126..235695f 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -486,11 +486,6 @@ union mcluster {
int _mplen = (plen); \
int __mhow = (how); \
\
- if (_mm == NULL) { \
- MGET(_mm, __mhow, MT_DATA); \
- if (_mm == NULL) \
- break; \
- } \
if (M_LEADINGSPACE(_mm) >= _mplen) { \
_mm->m_data -= _mplen; \
_mm->m_len += _mplen; \
OpenPOWER on IntegriCloud