From: Taehee Yoo Date: Sun, 8 Apr 2018 15:01:24 +0000 (+0900) Subject: netfilter: x_tables: remove duplicate ip6t_get_target function call X-Git-Tag: v5.15~8692^2~308^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4351bef053c0335dca1b1ae140384712c0e35e41;p=platform%2Fkernel%2Flinux-starfive.git netfilter: x_tables: remove duplicate ip6t_get_target function call In the check_target, ip6t_get_target is called twice. Signed-off-by: Taehee Yoo Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 65c9e1a..7097bbf 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -528,7 +528,6 @@ static int check_target(struct ip6t_entry *e, struct net *net, const char *name) .family = NFPROTO_IPV6, }; - t = ip6t_get_target(e); return xt_check_target(&par, t->u.target_size - sizeof(*t), e->ipv6.proto, e->ipv6.invflags & IP6T_INV_PROTO);