From: Ilya V. Matveychikov Date: Fri, 20 Jan 2017 00:19:23 +0000 (+0400) Subject: mbuf: remove redundant assignment when attaching X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7c931952248f9f84cf7ede7911a3354eeeacfb0c;p=dpdk.git mbuf: remove redundant assignment when attaching mi->next will be assigned to NULL few lines later, trivial patch Fixes: ea672a8b1655 ("mbuf: remove the rte_pktmbuf structure") Signed-off-by: Ilya V. Matveychikov Acked-by: Olivier Matz --- diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index bfce9f4a38..0d01167ccf 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -1158,7 +1158,6 @@ static inline void rte_pktmbuf_attach(struct rte_mbuf *mi, struct rte_mbuf *m) mi->buf_addr = m->buf_addr; mi->buf_len = m->buf_len; - mi->next = m->next; mi->data_off = m->data_off; mi->data_len = m->data_len; mi->port = m->port;