提交 84104b24 编写于 作者: A Andrei Emeltchenko 提交者: Johan Hedberg

Bluetooth: Make l2cap_conless_channel return void

l2cap_conless_channel always return 0 which is not used.
Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
上级 13ca56e0
...@@ -5187,7 +5187,8 @@ static void l2cap_data_channel(struct l2cap_conn *conn, u16 cid, ...@@ -5187,7 +5187,8 @@ static void l2cap_data_channel(struct l2cap_conn *conn, u16 cid,
l2cap_chan_unlock(chan); l2cap_chan_unlock(chan);
} }
static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, struct sk_buff *skb) static void l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm,
struct sk_buff *skb)
{ {
struct l2cap_chan *chan; struct l2cap_chan *chan;
...@@ -5204,12 +5205,10 @@ static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, str ...@@ -5204,12 +5205,10 @@ static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, str
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 inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid, static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册