Bluetooth: Make l2cap_att_channel return void
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 31 May 2012 08:18:57 +0000 (11:18 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:14 +0000 (06:34 +0300)
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>
net/bluetooth/l2cap_core.c

index a8d69aba39fda1551c5c18392c05020775939598..8229ae4fb4fd8b5b2c62d0f7b35e2012cb279c3a 100644 (file)
@@ -5211,8 +5211,8 @@ drop:
        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;
 
@@ -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)