mirror of https://github.com/F-Stack/f-stack.git
m_gethdr will call m_pkthdr_init also, so there is no need to initialize it again.
This commit is contained in:
parent
bdd7bed829
commit
1fe6dd4439
|
@ -372,10 +372,6 @@ ff_mbuf_gethdr(void *pkt, uint16_t total, void *data,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (m_pkthdr_init(m, M_NOWAIT) != 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
m_extadd(m, data, len, ff_mbuf_ext_free, pkt, NULL, 0, EXT_DISPOSABLE);
|
||||
|
||||
m->m_pkthdr.len = total;
|
||||
|
|
Loading…
Reference in New Issue