diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-08-31 15:39:28 +0200 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-09-08 21:53:48 +0200 |
commit | 6b536b5e5e1da32f3ba1e3f42c7bf2f80d37dc6b (patch) | |
tree | 3ee798ccf9f41e54a8fd35c30fc63d8388f80f1d /include/net | |
parent | Bluetooth: btmrvl: remove pointless conditional before kfree_skb() (diff) | |
download | linux-6b536b5e5e1da32f3ba1e3f42c7bf2f80d37dc6b.tar.xz linux-6b536b5e5e1da32f3ba1e3f42c7bf2f80d37dc6b.zip |
Bluetooth: Remove unneeded zero init
hdev is allocated with kzalloc so zero initialization is not needed.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 1bbc1091748c..fa807a3fd23b 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -428,15 +428,6 @@ static inline bool hci_conn_ssp_enabled(struct hci_conn *conn) test_bit(HCI_CONN_SSP_ENABLED, &conn->flags); } -static inline void hci_conn_hash_init(struct hci_dev *hdev) -{ - struct hci_conn_hash *h = &hdev->conn_hash; - INIT_LIST_HEAD(&h->list); - h->acl_num = 0; - h->sco_num = 0; - h->le_num = 0; -} - static inline void hci_conn_hash_add(struct hci_dev *hdev, struct hci_conn *c) { struct hci_conn_hash *h = &hdev->conn_hash; |