Browse Source

Bluetooth: Make l2cap_att_channel return void

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>
Andrei Emeltchenko 13 năm trước cách đây
mục cha
commit
6810fca724
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 3 5
      net/bluetooth/l2cap_core.c

+ 3 - 5
net/bluetooth/l2cap_core.c

@@ -5211,8 +5211,8 @@ drop:
 	kfree_skb(skb);
 	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;
 	struct l2cap_chan *chan;
 
 
@@ -5229,12 +5229,10 @@ static inline int l2cap_att_channel(struct l2cap_conn *conn, u16 cid,
 		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 void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)
 static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)