Skip to content

Commit

Permalink
Bluetooth: Make l2cap_conless_channel return void
Browse files Browse the repository at this point in the history
l2cap_conless_channel always return 0 which is not used.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
  • Loading branch information
Andrei Emeltchenko authored and Johan Hedberg committed Jun 5, 2012
1 parent 13ca56e commit 84104b2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5187,7 +5187,8 @@ static void l2cap_data_channel(struct l2cap_conn *conn, u16 cid,
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;

Expand All @@ -5204,12 +5205,10 @@ static inline int l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm, str
goto drop;

if (!chan->ops->recv(chan, skb))
return 0;
return;

drop:
kfree_skb(skb);

return 0;
}

static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
Expand Down

0 comments on commit 84104b2

Please sign in to comment.