diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index e72aa0ff5785..91f5cc5a3f88 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -597,7 +597,7 @@ static unsigned int tcp_syn_options(struct sock *sk, struct sk_buff *skb, | |||
597 | 597 | ||
598 | *md5 = NULL; | 598 | *md5 = NULL; |
599 | #ifdef CONFIG_TCP_MD5SIG | 599 | #ifdef CONFIG_TCP_MD5SIG |
600 | if (static_key_false(&tcp_md5_needed) && | 600 | if (static_branch_unlikely(&tcp_md5_needed) && |
601 | rcu_access_pointer(tp->md5sig_info)) { | 601 | rcu_access_pointer(tp->md5sig_info)) { |
602 | *md5 = tp->af_specific->md5_lookup(sk, sk); | 602 | *md5 = tp->af_specific->md5_lookup(sk, sk); |
603 | if (*md5) { | 603 | if (*md5) { |
@@ -734,7 +734,7 @@ static unsigned int tcp_established_options(struct sock *sk, struct sk_buff *skb | |||
734 | 734 | ||
735 | *md5 = NULL; | 735 | *md5 = NULL; |
736 | #ifdef CONFIG_TCP_MD5SIG | 736 | #ifdef CONFIG_TCP_MD5SIG |
737 | if (static_key_false(&tcp_md5_needed) && | 737 | if (static_branch_unlikely(&tcp_md5_needed) && |
738 | rcu_access_pointer(tp->md5sig_info)) { | 738 | rcu_access_pointer(tp->md5sig_info)) { |
739 | *md5 = tp->af_specific->md5_lookup(sk, sk); | 739 | *md5 = tp->af_specific->md5_lookup(sk, sk); |
740 | if (*md5) { | 740 | if (*md5) { |