netfilter: nat: remove duplicate skb_is_nonlinear() in __nf_nat_mangle_tcp_packet()
authorTaehee Yoo <ap420073@gmail.com>
Wed, 12 Sep 2018 14:07:31 +0000 (23:07 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 20 Sep 2018 16:26:56 +0000 (18:26 +0200)
commitf8b0a3ab06a092c84ec0cab8232abb1b6f7c14f4
treed4a2b8480197fa52c9414cd5c573ba27fe7929e3
parent93185c80a5f748620f5652e492f2a1c8d89db593
netfilter: nat: remove duplicate skb_is_nonlinear() in __nf_nat_mangle_tcp_packet()

__nf_nat_mangle_tcp_packet() and nf_nat_mangle_udp_packet() call
mangle_contents(). and __nf_nat_mangle_tcp_packet()
and mangle_contents() call skb_is_nonlinear(). so that
skb_is_nonlinear() in __nf_nat_mangle_tcp_packet() is unnecessary.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_nat_helper.c