diff options
author | Florian Westphal <fw@strlen.de> | 2021-04-14 18:12:52 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-04-19 12:25:11 +0200 |
commit | 7baf867fef7cc65d666792e9d1b911beffe74ad7 (patch) | |
tree | 3f9aaa3fdc68128eb59b959c1870d53505793757 /net/xfrm | |
parent | flow: remove spi key from flowi struct (diff) | |
download | linux-7baf867fef7cc65d666792e9d1b911beffe74ad7.tar.xz linux-7baf867fef7cc65d666792e9d1b911beffe74ad7.zip |
xfrm: remove stray synchronize_rcu from xfrm_init
This function is called during boot, from ipv4 stack, there is no need
to set the pointer to NULL (static storage duration, so already NULL).
No need for the synchronize_rcu either. Remove both.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index cc6e02eb76c2..ce500f847b99 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -4134,9 +4134,6 @@ void __init xfrm_init(void) #ifdef CONFIG_XFRM_ESPINTCP espintcp_init(); #endif - - RCU_INIT_POINTER(xfrm_if_cb, NULL); - synchronize_rcu(); } #ifdef CONFIG_AUDITSYSCALL |