From: Gustavo F. Padovan <padovan@profusion.mobi> Date: Wed, 18 May 2011 21:14:45 +0000 (-0300) Subject: Bluetooth: fix set but not used warning X-Git-Tag: firefly_0821_release~7613^2~541 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=af2a7f40cfa4df782961d0d423bdac4cdf65add2;p=firefly-linux-kernel-4.4.55.git Bluetooth: fix set but not used warning Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi> --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 07621ceccda2..0407c9e095d3 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -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);