aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-05-31 04:18:57 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-04 23:34:14 -0400
commit6810fca724d2a3c08c0d2eb8510648e7a36ab592 (patch)
tree0ff08fb1c0dea175f78a59fb8e37ab5a0a4c337c /net/bluetooth
parent84104b241d26302cb9083779d06741002534a58e (diff)
Bluetooth: Make l2cap_att_channel return void
l2cap_att_channel always returns 0 which is not used. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index a8d69aba39fd..8229ae4fb4fd 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -5211,8 +5211,8 @@ drop:
5211 kfree_skb(skb); 5211 kfree_skb(skb);
5212} 5212}
5213 5213
5214static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid, 5214static void l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
5215 struct sk_buff *skb) 5215 struct sk_buff *skb)
5216{ 5216{
5217 struct l2cap_chan *chan; 5217 struct l2cap_chan *chan;
5218 5218
@@ -5229,12 +5229,10 @@ static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
5229 goto drop; 5229 goto drop;
5230 5230
5231 if (!chan->ops->recv(chan, skb)) 5231 if (!chan->ops->recv(chan, skb))
5232 return 0; 5232 return;
5233 5233
5234drop: 5234drop:
5235 kfree_skb(skb); 5235 kfree_skb(skb);
5236
5237 return 0;
5238} 5236}
5239 5237
5240static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb) 5238static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)