Remove superfluous m_pkthdr.rcv_if = NULL assignment following
m_gethdr() mbuf allocation, which already does this for us.
This commit is contained in:
parent
02318dac2c
commit
096e2dd9d8
@ -75,7 +75,6 @@ mb_init(struct mbchain *mbp)
|
||||
m = m_gethdr(M_TRYWAIT, MT_DATA);
|
||||
if (m == NULL)
|
||||
return ENOBUFS;
|
||||
m->m_pkthdr.rcvif = NULL;
|
||||
m->m_len = 0;
|
||||
mb_initm(mbp, m);
|
||||
return 0;
|
||||
@ -308,7 +307,6 @@ md_init(struct mdchain *mdp)
|
||||
m = m_gethdr(M_TRYWAIT, MT_DATA);
|
||||
if (m == NULL)
|
||||
return ENOBUFS;
|
||||
m->m_pkthdr.rcvif = NULL;
|
||||
m->m_len = 0;
|
||||
md_initm(mdp, m);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user