Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: ip6t_SYNPROXY: unnecessary to check whether ip6_route_output returns NULL

ip6_route_output() will never return a NULL pointer, so there's no need
to check it.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Liping Zhang and committed by
Pablo Neira Ayuso
d2b484b5 3bb398d9

+1 -1
+1 -1
net/ipv6/netfilter/ip6t_SYNPROXY.c
··· 60 60 fl6.fl6_dport = nth->dest; 61 61 security_skb_classify_flow((struct sk_buff *)skb, flowi6_to_flowi(&fl6)); 62 62 dst = ip6_route_output(net, NULL, &fl6); 63 - if (dst == NULL || dst->error) { 63 + if (dst->error) { 64 64 dst_release(dst); 65 65 goto free_nskb; 66 66 }