Commit 6810fca7 authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Johan Hedberg

Bluetooth: Make l2cap_att_channel return void

l2cap_att_channel always returns 0 which is not used.
Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent 84104b24
...@@ -5211,8 +5211,8 @@ static void l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, ...@@ -5211,8 +5211,8 @@ static void l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm,
kfree_skb(skb); kfree_skb(skb);
} }
static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid, static void l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
struct sk_buff *skb) struct sk_buff *skb)
{ {
struct l2cap_chan *chan; struct l2cap_chan *chan;
...@@ -5229,12 +5229,10 @@ static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid, ...@@ -5229,12 +5229,10 @@ static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
goto drop; goto drop;
if (!chan->ops->recv(chan, skb)) if (!chan->ops->recv(chan, skb))
return 0; return;
drop: drop:
kfree_skb(skb); kfree_skb(skb);
return 0;
} }
static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb) static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment