Skip to contentSkip to conversation

xfrm: remove a duplicated assignment

PATCH Applied Cong Wang 2 participants 2 messages Jun 29, 2019 – Jul 2, 2019

Subsystems (3)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 xfrm: remove a duplicated assignment

Fixes 30846090a746 ("xfrm: policy: add sequence count to sync with hash resize")
Cc Florian Westphal <[email protected]>
Cc Steffen Klassert <[email protected]>
---
 net/xfrm/xfrm_policy.c | 3 ---
 1 file changed, 3 deletions(-)
net/xfrm/xfrm_policy.c +0 -3
index b1694d5d15d3..3235562f6588 100644
@@ -582,9 +582,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));
 
Signature · 1 line
2.21.0