aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-05-31 11:18:56 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-05 06:34:14 +0300
commit84104b241d26302cb9083779d06741002534a58e (patch)
treed1199fcc7c210a7c323669cae11b008269dc9229 /net/bluetooth
parentBluetooth: Make l2cap_data_channel return void (diff)
downloadlinux-dev-84104b241d26302cb9083779d06741002534a58e.tar.xz
linux-dev-84104b241d26302cb9083779d06741002534a58e.zip
Bluetooth: Make l2cap_conless_channel return void
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 56f5c0e31649..a8d69aba39fd 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -5187,7 +5187,8 @@ done:
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;
@@ -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,