mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 00:06:36 +00:00
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>
This commit is contained in:
parent
6a03bfbd5e
commit
a406290af0
1 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue