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)
This commit is contained in:
Brian Feldman 2000-04-30 18:42:44 +00:00
parent 226f14bc83
commit 26872f7ef2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59793

View File

@ -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; \