xfrm: remove a duplicated assignment
authorCong Wang <xiyou.wangcong@gmail.com>
Sat, 29 Jun 2019 19:17:14 +0000 (12:17 -0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 2 Jul 2019 08:58:28 +0000 (10:58 +0200)
Fixes: 30846090a746 ("xfrm: policy: add sequence count to sync with hash resize")
Cc: Florian Westphal <fw@strlen.de>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c

index 7a43ae6b2a443b71e128f20542f30f497630e0e2..7eefdc9be2a7802c27bd79055d158fd07d500dc0 100644 (file)
@@ -581,9 +581,6 @@ static void xfrm_bydst_resize(struct net *net, int dir)
        spin_lock_bh(&net->xfrm.xfrm_policy_lock);
        write_seqcount_begin(&xfrm_policy_hash_generation);
 
-       odst = rcu_dereference_protected(net->xfrm.policy_bydst[dir].table,
-                               lockdep_is_held(&net->xfrm.xfrm_policy_lock));
-
        odst = rcu_dereference_protected(net->xfrm.policy_bydst[dir].table,
                                lockdep_is_held(&net->xfrm.xfrm_policy_lock));