From: Jesper Juhl Date: Wed, 9 Mar 2011 21:55:05 +0000 (+0100) Subject: IPVS: Fix variable assignment in ip_vs_notrack X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~22752^2~26^2~29 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=06b69390a652bfe4fa7e18e27c938e75ffe86ba0;p=mirror_ubuntu-focal-kernel.git 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 Signed-off-by: Simon Horman --- diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index e74da41ebd1b..1dcb75da313d 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h @@ -1190,7 +1190,7 @@ static inline void ip_vs_notrack(struct sk_buff *skb) { #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) enum ip_conntrack_info ctinfo; - struct nf_conn *ct = ct = nf_ct_get(skb, &ctinfo); + struct nf_conn *ct = nf_ct_get(skb, &ctinfo); if (!ct || !nf_ct_is_untracked(ct)) { nf_reset(skb);