summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-12-02 14:02:03 +0800
committerAndy Green <andy.green@linaro.org>2011-12-02 14:02:03 +0800
commitba8be27feb4b99b0cb26e36ea2e12dc3e5cc1a08 (patch)
tree1e9785221bb9b09870949bc0df0fa1a2da95139f
parentd98315a3adba05af3eb9517944291f957210af8a (diff)
Bluetooth: fix set but not used warning
Change-Id: I6b5be004cdb85fee096f82eb4a599edba3af7e67 Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-rw-r--r--net/bluetooth/l2cap_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index cbbac1693d7..9a728796273 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -3709,6 +3709,7 @@ 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;
@@ -3720,7 +3721,7 @@ 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);
if (chan->state != BT_CONNECTED)