aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-02-18 10:14:32 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-02-18 11:58:20 -0500
commit35f7498a87794ca531335f7c782e5b9495fec6d6 (patch)
tree8c328c325df22b858281dd0259fd3d17624039ab /include/net/bluetooth
parente0b2b27e622da0ba8a3d253b985d3d8f174b4313 (diff)
Bluetooth: Remove return values from functions that don't need them
There are many functions that never fail but still declare an integer return value for no reason. This patch converts these functions to use a void return value to avoid any confusion of whether they can fail or not. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index ab94abdeb3c1..964a7888ad0c 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -768,7 +768,7 @@ int hci_inquiry(void __user *arg);
768 768
769struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev, 769struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev,
770 bdaddr_t *bdaddr, u8 type); 770 bdaddr_t *bdaddr, u8 type);
771int hci_blacklist_clear(struct hci_dev *hdev); 771void hci_blacklist_clear(struct hci_dev *hdev);
772int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); 772int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type);
773int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type); 773int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type);
774 774
@@ -779,9 +779,9 @@ void hci_conn_params_add(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type,
779void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type); 779void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type);
780void hci_conn_params_clear(struct hci_dev *hdev); 780void hci_conn_params_clear(struct hci_dev *hdev);
781 781
782int hci_uuids_clear(struct hci_dev *hdev); 782void hci_uuids_clear(struct hci_dev *hdev);
783 783
784int hci_link_keys_clear(struct hci_dev *hdev); 784void hci_link_keys_clear(struct hci_dev *hdev);
785struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); 785struct link_key *hci_find_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
786int hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn, int new_key, 786int hci_add_link_key(struct hci_dev *hdev, struct hci_conn *conn, int new_key,
787 bdaddr_t *bdaddr, u8 *val, u8 type, u8 pin_len); 787 bdaddr_t *bdaddr, u8 *val, u8 type, u8 pin_len);
@@ -793,7 +793,7 @@ int hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, u8 type,
793struct smp_ltk *hci_find_ltk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr, 793struct smp_ltk *hci_find_ltk_by_addr(struct hci_dev *hdev, bdaddr_t *bdaddr,
794 u8 addr_type, bool master); 794 u8 addr_type, bool master);
795int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 bdaddr_type); 795int hci_remove_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 bdaddr_type);
796int hci_smp_ltks_clear(struct hci_dev *hdev); 796void hci_smp_ltks_clear(struct hci_dev *hdev);
797int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr); 797int hci_remove_link_key(struct hci_dev *hdev, bdaddr_t *bdaddr);
798 798
799struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa); 799struct smp_irk *hci_find_irk_by_rpa(struct hci_dev *hdev, bdaddr_t *rpa);
@@ -803,7 +803,7 @@ int hci_add_irk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type,
803 u8 val[16], bdaddr_t *rpa); 803 u8 val[16], bdaddr_t *rpa);
804void hci_smp_irks_clear(struct hci_dev *hdev); 804void hci_smp_irks_clear(struct hci_dev *hdev);
805 805
806int hci_remote_oob_data_clear(struct hci_dev *hdev); 806void hci_remote_oob_data_clear(struct hci_dev *hdev);
807struct oob_data *hci_find_remote_oob_data(struct hci_dev *hdev, 807struct oob_data *hci_find_remote_oob_data(struct hci_dev *hdev,
808 bdaddr_t *bdaddr); 808 bdaddr_t *bdaddr);
809int hci_add_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr, 809int hci_add_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr,