diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-07-24 09:06:15 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-08-06 14:02:58 -0400 |
commit | 9e66463127ff7238020c3c4e7f84dfbc23e5c2b5 (patch) | |
tree | 78eca02713a62ff8bafbf9c64447c53784d51afc /net/bluetooth/sco.c | |
parent | c58e810eb0916f9197378435af72136fb7c97f43 (diff) |
Bluetooth: Make connect / disconnect cfm functions return void
Return values are never used because callers hci_proto_connect_cfm
and hci_proto_disconn_cfm return void.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/sco.c')
-rw-r--r-- | net/bluetooth/sco.c | 7 |
1 files changed, 2 insertions, 5 deletions
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) |