mbuf: cleanup function to get last segment
authorIlya V. Matveychikov <matvejchikov@gmail.com>
Sat, 9 Dec 2017 21:08:22 +0000 (00:08 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Jan 2018 23:37:07 +0000 (00:37 +0100)
commitfce71ed2d2f18f7afa71f06fc9926c79676a98f9
treed72ab801bf1d85c579d512b0dee54a37ab86739e
parent5e1f62fb1a4bbcf7a6294c019adf36286cce5955
mbuf: cleanup function to get last segment

There is no reason to have local variable m2.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Ilya V. Matveychikov <matvejchikov@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf.h