netfilter: remove silly double assignment
Subsystems (3)
PATCH 1/1 netfilter: remove silly double assignment
From: Alan Cox <[email protected]>
I don't even want to think what the C spec says for this 8)
Signed-off-by Alan Cox <[email protected]>
---
net/netfilter/ipvs/ip_vs_nfct.c | 2 +- net/netfilter/ipvs/ip_vs_xmit.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
net/netfilter/ipvs/ip_vs_nfct.c +1 -1
@@ -82,7 +82,7 @@ void ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp, int outin) { enum ip_conntrack_info ctinfo; -struct nf_conn *ct = ct =nf_ct_get (skb, &ctinfo); +struct nf_conn *ct =nf_ct_get (skb, &ctinfo);struct nf_conntrack_tuple new_tuple; if (ct == NULL || nf_ct_is_confirmed(ct) || nf_ct_is_untracked(ct) ||
net/netfilter/ipvs/ip_vs_xmit.c +4 -4
@@ -592,7 +592,7 @@ ip_vs_nat_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,#if IS_ENABLED (CONFIG_NF_CONNTRACK )if (cp->flags &IP_VS_CONN_F_SYNC && local) {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)) { IP_VS_DBG_RL_PKT(10, AF_INET, pp, skb, 0,
@@ -709,7 +709,7 @@ ip_vs_nat_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,#if IS_ENABLED (CONFIG_NF_CONNTRACK )if (cp->flags &IP_VS_CONN_F_SYNC && local) {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)) { IP_VS_DBG_RL_PKT(10, AF_INET6, pp, skb, 0,
@@ -1227,7 +1227,7 @@ ip_vs_icmp_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,#if IS_ENABLED (CONFIG_NF_CONNTRACK )if (cp->flags &IP_VS_CONN_F_SYNC && local) {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)) { IP_VS_DBG(10, "%s(): "
@@ -1347,7 +1347,7 @@ ip_vs_icmp_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,#if IS_ENABLED (CONFIG_NF_CONNTRACK )if (cp->flags &IP_VS_CONN_F_SYNC && local) {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)) { IP_VS_DBG(10, "%s(): "
Pablo Neira Ayuso
maintainerQuoted 3 lines · Alan Cox
From: Alan Cox <[email protected]>
I don't even want to think what the C spec says for this 8)
I don't want to know it either :-), I have applied this.
@Simon: this patch is fairly small, I'll take it myself into nf-next.
Simon Horman
maintainerQuoted 8 lines · Pablo Neira Ayuso
Quoted 3 lines · Alan Cox
From: Alan Cox <[email protected]>
I don't even want to think what the C spec says for this 8)
I don't want to know it either :-), I have applied this.
@Simon: this patch is fairly small, I'll take it myself into nf-next.
Thanks.