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

IPVS: Fix variable assignment in ip_vs_notrack

There's no sense to 'ct = ct = ' in ip_vs_notrack(). Just assign
nf_ct_get()'s return value directly to the pointer variable 'ct' once.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Simon Horman <horms@verge.net.au>

authored by

Jesper Juhl and committed by
Simon Horman
06b69390 6060c74a

+1 -1
+1 -1
include/net/ip_vs.h
··· 1190 1190 { 1191 1191 #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) 1192 1192 enum ip_conntrack_info ctinfo; 1193 - struct nf_conn *ct = ct = nf_ct_get(skb, &ctinfo); 1193 + struct nf_conn *ct = nf_ct_get(skb, &ctinfo); 1194 1194 1195 1195 if (!ct || !nf_ct_is_untracked(ct)) { 1196 1196 nf_reset(skb);