Skip to content

Commit 1fe6dd4

Browse files
liujinhui-jobjfb8856606
authored andcommitted
m_gethdr will call m_pkthdr_init also, so there is no need to initialize it again.
1 parent bdd7bed commit 1fe6dd4

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/ff_veth.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,6 @@ ff_mbuf_gethdr(void *pkt, uint16_t total, void *data,
372372
return NULL;
373373
}
374374

375-
if (m_pkthdr_init(m, M_NOWAIT) != 0) {
376-
return NULL;
377-
}
378-
379375
m_extadd(m, data, len, ff_mbuf_ext_free, pkt, NULL, 0, EXT_DISPOSABLE);
380376

381377
m->m_pkthdr.len = total;

0 commit comments

Comments
 (0)