Bluetooth: Remove sk member from struct l2cap_chan
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 21 Oct 2013 20:22:26 +0000 (18:22 -0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 21 Oct 2013 20:50:56 +0000 (13:50 -0700)
There is no access to chan->sk in L2CAP core now. This change marks the
end of the task of splitting L2CAP between Core and Socket, thus sk is now
gone from struct l2cap_chan.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_sock.c

index 3d922b938141a2e44b2931ea24d606fb9f343d78..51329905bfaafda1c290a26103914d5879144a01 100644 (file)
@@ -435,8 +435,6 @@ struct l2cap_seq_list {
 #define L2CAP_SEQ_LIST_TAIL    0x8000
 
 struct l2cap_chan {
-       struct sock *sk;
-
        struct l2cap_conn       *conn;
        struct hci_conn         *hs_hcon;
        struct hci_chan         *hs_hchan;
index cba3162dc33db973ad950d77b99393d598e6389b..7cc24d263caaab45af9d8bbe5be09ebda20e87a4 100644 (file)
@@ -1374,8 +1374,6 @@ static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
 
        l2cap_chan_hold(chan);
 
-       chan->sk = sk;
-
        l2cap_pi(sk)->chan = chan;
 
        return sk;