diff options
author | Brian Feldman <green@FreeBSD.org> | 2000-04-30 18:42:44 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 2000-04-30 18:42:44 +0000 |
commit | 26872f7ef20e701f7e86c78020b4c4650d8d5c20 (patch) | |
tree | 4c57b39ec1825bae2bbc86535c16712004d1319e /sys | |
parent | 226f14bc833581b7ea5ba4725ccab1b2b6311cd6 (diff) | |
download | src-26872f7ef20e701f7e86c78020b4c4650d8d5c20.tar.gz src-26872f7ef20e701f7e86c78020b4c4650d8d5c20.zip |
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)
Notes
Notes:
svn path=/head/; revision=59793
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/mbuf.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index d278126d8d8c..235695f91a38 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; \ |