Skip to content

Commit

Permalink
Bluetooth: Make l2cap_att_channel return void
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrei Emeltchenko authored and Johan Hedberg committed Jun 5, 2012
1 parent 84104b2 commit 6810fca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5211,8 +5211,8 @@ static void l2cap_conless_channel(struct l2cap_conn *conn, __le16 psm,
kfree_skb(skb);
}

static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
struct sk_buff *skb)
static void l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
struct sk_buff *skb)
{
struct l2cap_chan *chan;

Expand All @@ -5229,12 +5229,10 @@ static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
goto drop;

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

drop:
kfree_skb(skb);

return 0;
}

static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)
Expand Down

0 comments on commit 6810fca

Please sign in to comment.