OSDN Git Service

Bluetooth: fix set but not used warning
authorGustavo F. Padovan <padovan@profusion.mobi>
Wed, 18 May 2011 21:14:45 +0000 (18:14 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:11 +0000 (11:59 -0700)
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c

index 07621ce..0407c9e 100644 (file)
@@ -3664,7 +3664,6 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk
 {
        struct l2cap_chan *chan;
        struct sock *sk = NULL;
-       struct l2cap_pinfo *pi;
        u16 control;
        u8 tx_seq;
        int len;
@@ -3676,7 +3675,6 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk
        }
 
        sk = chan->sk;
-       pi = l2cap_pi(sk);
 
        BT_DBG("chan %p, len %d", chan, skb->len);