From 7c931952248f9f84cf7ede7911a3354eeeacfb0c Mon Sep 17 00:00:00 2001 From: "Ilya V. Matveychikov" Date: Fri, 20 Jan 2017 04:19:23 +0400 Subject: [PATCH] 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 --- lib/librte_mbuf/rte_mbuf.h | 1 - 1 file changed, 1 deletion(-) 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; -- 2.20.1