Skip to content

Commit

Permalink
caif: Use default send and receive buffer size in caif_socket.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sjur Braendeland authored and David S. Miller committed Sep 22, 2010
1 parent e5e03ce commit 9e2e8f1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/caif/caif_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9e2e8f1

Please sign in to comment.