]> git.karo-electronics.de Git - linux-beck.git/commitdiff
IPVS: Fix variable assignment in ip_vs_notrack
authorJesper Juhl <jj@chaosbits.net>
Wed, 9 Mar 2011 21:55:05 +0000 (22:55 +0100)
committerSimon Horman <horms@verge.net.au>
Tue, 15 Mar 2011 00:36:49 +0000 (09:36 +0900)
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>
include/net/ip_vs.h

index e74da41ebd1be69d48845e4e6400dad96ad76004..1dcb75da313dac82a630a3353ec297a93194c662 100644 (file)
@@ -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);