diff options
author | Sjur Braendeland <sjur.brandeland@stericsson.com> | 2010-09-21 13:44:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-22 03:05:31 +0200 |
commit | 9e2e8f14d48dbb6c31aeb739ae4fc8997b9dfe84 (patch) | |
tree | 5c3c8acf516e4a840d1fa06cf8ea126cb26735d1 /net/caif/caif_socket.c | |
parent | caif: Fix function NULL pointer check. (diff) | |
download | linux-9e2e8f14d48dbb6c31aeb739ae4fc8997b9dfe84.tar.xz linux-9e2e8f14d48dbb6c31aeb739ae4fc8997b9dfe84.zip |
caif: Use default send and receive buffer size in caif_socket.
CAIF sockets should use socket's default send and receive buffers sizes.
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/caif_socket.c')
-rw-r--r-- | net/caif/caif_socket.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index 3943398f70cd..4d918f8f4e67 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c @@ -30,9 +30,6 @@ MODULE_LICENSE("GPL"); MODULE_ALIAS_NETPROTO(AF_CAIF); -#define CAIF_DEF_SNDBUF (4096*10) -#define CAIF_DEF_RCVBUF (4096*100) - /* * CAIF state is re-using the TCP socket states. * caif_states stored in sk_state reflect the state as reported by @@ -1118,10 +1115,6 @@ static int caif_create(struct net *net, struct socket *sock, int protocol, /* Store the protocol */ sk->sk_protocol = (unsigned char) protocol; - /* Sendbuf dictates the amount of outbound packets not yet sent */ - sk->sk_sndbuf = CAIF_DEF_SNDBUF; - sk->sk_rcvbuf = CAIF_DEF_RCVBUF; - /* * Lock in order to try to stop someone from opening the socket * too early. |