From: Gustavo F. Padovan Date: Wed, 18 May 2011 21:14:45 +0000 (-0300) Subject: Bluetooth: fix set but not used warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78676a06260a4162b6837a8a2fb954445004ebc2;p=linux-beck.git Bluetooth: fix set but not used warning Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 6b59005fba95..af1bc3085c44 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -3663,7 +3663,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; @@ -3675,7 +3674,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);