Remove superfluous m_pkthdr.rcv_if = NULL assignment following

m_gethdr() mbuf allocation, which already does this for us.
This commit is contained in:
Bosko Milekic 2001-02-25 06:33:50 +00:00
parent 02318dac2c
commit 096e2dd9d8

View File

@ -75,7 +75,6 @@ mb_init(struct mbchain *mbp)
m = m_gethdr(M_TRYWAIT, MT_DATA); m = m_gethdr(M_TRYWAIT, MT_DATA);
if (m == NULL) if (m == NULL)
return ENOBUFS; return ENOBUFS;
m->m_pkthdr.rcvif = NULL;
m->m_len = 0; m->m_len = 0;
mb_initm(mbp, m); mb_initm(mbp, m);
return 0; return 0;
@ -308,7 +307,6 @@ md_init(struct mdchain *mdp)
m = m_gethdr(M_TRYWAIT, MT_DATA); m = m_gethdr(M_TRYWAIT, MT_DATA);
if (m == NULL) if (m == NULL)
return ENOBUFS; return ENOBUFS;
m->m_pkthdr.rcvif = NULL;
m->m_len = 0; m->m_len = 0;
md_initm(mdp, m); md_initm(mdp, m);
return 0; return 0;