diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 6 | ||||
-rw-r--r-- | net/bluetooth/sco.c | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 64d88a603f0a..8391e0575494 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -5329,7 +5329,7 @@ int l2cap_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr) | |||
5329 | return exact ? lm1 : lm2; | 5329 | return exact ? lm1 : lm2; |
5330 | } | 5330 | } |
5331 | 5331 | ||
5332 | int l2cap_connect_cfm(struct hci_conn *hcon, u8 status) | 5332 | void l2cap_connect_cfm(struct hci_conn *hcon, u8 status) |
5333 | { | 5333 | { |
5334 | struct l2cap_conn *conn; | 5334 | struct l2cap_conn *conn; |
5335 | 5335 | ||
@@ -5342,7 +5342,6 @@ int l2cap_connect_cfm(struct hci_conn *hcon, u8 status) | |||
5342 | } else | 5342 | } else |
5343 | l2cap_conn_del(hcon, bt_to_errno(status)); | 5343 | l2cap_conn_del(hcon, bt_to_errno(status)); |
5344 | 5344 | ||
5345 | return 0; | ||
5346 | } | 5345 | } |
5347 | 5346 | ||
5348 | int l2cap_disconn_ind(struct hci_conn *hcon) | 5347 | int l2cap_disconn_ind(struct hci_conn *hcon) |
@@ -5356,12 +5355,11 @@ int l2cap_disconn_ind(struct hci_conn *hcon) | |||
5356 | return conn->disc_reason; | 5355 | return conn->disc_reason; |
5357 | } | 5356 | } |
5358 | 5357 | ||
5359 | int l2cap_disconn_cfm(struct hci_conn *hcon, u8 reason) | 5358 | void l2cap_disconn_cfm(struct hci_conn *hcon, u8 reason) |
5360 | { | 5359 | { |
5361 | BT_DBG("hcon %p reason %d", hcon, reason); | 5360 | BT_DBG("hcon %p reason %d", hcon, reason); |
5362 | 5361 | ||
5363 | l2cap_conn_del(hcon, bt_to_errno(reason)); | 5362 | l2cap_conn_del(hcon, bt_to_errno(reason)); |
5364 | return 0; | ||
5365 | } | 5363 | } |
5366 | 5364 | ||
5367 | static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt) | 5365 | static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt) |
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 40bbe25dcff7..0ef5a78a889f 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c | |||
@@ -913,7 +913,7 @@ int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr) | |||
913 | return lm; | 913 | return lm; |
914 | } | 914 | } |
915 | 915 | ||
916 | int sco_connect_cfm(struct hci_conn *hcon, __u8 status) | 916 | void sco_connect_cfm(struct hci_conn *hcon, __u8 status) |
917 | { | 917 | { |
918 | BT_DBG("hcon %p bdaddr %s status %d", hcon, batostr(&hcon->dst), status); | 918 | BT_DBG("hcon %p bdaddr %s status %d", hcon, batostr(&hcon->dst), status); |
919 | if (!status) { | 919 | if (!status) { |
@@ -924,16 +924,13 @@ int sco_connect_cfm(struct hci_conn *hcon, __u8 status) | |||
924 | sco_conn_ready(conn); | 924 | sco_conn_ready(conn); |
925 | } else | 925 | } else |
926 | sco_conn_del(hcon, bt_to_errno(status)); | 926 | sco_conn_del(hcon, bt_to_errno(status)); |
927 | |||
928 | return 0; | ||
929 | } | 927 | } |
930 | 928 | ||
931 | int sco_disconn_cfm(struct hci_conn *hcon, __u8 reason) | 929 | void sco_disconn_cfm(struct hci_conn *hcon, __u8 reason) |
932 | { | 930 | { |
933 | BT_DBG("hcon %p reason %d", hcon, reason); | 931 | BT_DBG("hcon %p reason %d", hcon, reason); |
934 | 932 | ||
935 | sco_conn_del(hcon, bt_to_errno(reason)); | 933 | sco_conn_del(hcon, bt_to_errno(reason)); |
936 | return 0; | ||
937 | } | 934 | } |
938 | 935 | ||
939 | int sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) | 936 | int sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) |