diff options
author | Eric Dumazet <edumazet@google.com> | 2021-10-27 18:12:05 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-28 14:40:09 +0100 |
commit | a406290af0ffd150af8d54819407f2d19c513fdc (patch) | |
tree | 538fd1255c3ca22dfe29fcfd8a39dbf8bd25b1c5 /include/net/sock.h | |
parent | 6a03bfbd5eade19e1943551abba2acd4d9079762 (diff) |
net: cleanup __sk_stream_memory_free()
We now have INDIRECT_CALL_INET_1() macro, no need to use #ifdef CONFIG_INET
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 4f0280ad6c23..fb70d8553fae 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1310,15 +1310,9 @@ static inline bool __sk_stream_memory_free(const struct sock *sk, int wake) if (READ_ONCE(sk->sk_wmem_queued) >= READ_ONCE(sk->sk_sndbuf)) return false; -#ifdef CONFIG_INET - return sk->sk_prot->stream_memory_free ? - INDIRECT_CALL_1(sk->sk_prot->stream_memory_free, - tcp_stream_memory_free, - sk, wake) : true; -#else return sk->sk_prot->stream_memory_free ? - sk->sk_prot->stream_memory_free(sk, wake) : true; -#endif + INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free, + tcp_stream_memory_free, sk, wake) : true; } static inline bool sk_stream_memory_free(const struct sock *sk) |