aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-02-03 23:36:42 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-07 22:43:30 -0500
commit554f05bb8a0707dcc0ba4ea1dba1fb9970846ab5 (patch)
treea7aaed5d2bf68fdd5be3a1a8a36d3382e99d109d /net/bluetooth/l2cap_core.c
parent65390587c7bcf8bb60b48387db766d8d7dfea982 (diff)
Bluetooth: move l2cap_sock_release() to l2cap_sock.c
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 74a3ea3625d6..5765a82cf380 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -2159,23 +2159,6 @@ int l2cap_sock_shutdown(struct socket *sock, int how)
2159 return err; 2159 return err;
2160} 2160}
2161 2161
2162int l2cap_sock_release(struct socket *sock)
2163{
2164 struct sock *sk = sock->sk;
2165 int err;
2166
2167 BT_DBG("sock %p, sk %p", sock, sk);
2168
2169 if (!sk)
2170 return 0;
2171
2172 err = l2cap_sock_shutdown(sock, 2);
2173
2174 sock_orphan(sk);
2175 l2cap_sock_kill(sk);
2176 return err;
2177}
2178
2179static void l2cap_chan_ready(struct sock *sk) 2162static void l2cap_chan_ready(struct sock *sk)
2180{ 2163{
2181 struct sock *parent = bt_sk(sk)->parent; 2164 struct sock *parent = bt_sk(sk)->parent;