aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-08-31 09:39:28 -0400
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-09-08 15:53:48 -0400
commit6b536b5e5e1da32f3ba1e3f42c7bf2f80d37dc6b (patch)
tree3ee798ccf9f41e54a8fd35c30fc63d8388f80f1d /net/bluetooth
parent7923296f3f9eebbe3d7bb4c99d73bd7a226e0146 (diff)
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 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index fa974a19d365..86abe721f484 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1652,6 +1652,7 @@ struct hci_dev *hci_alloc_dev(void)
1652 INIT_LIST_HEAD(&hdev->link_keys); 1652 INIT_LIST_HEAD(&hdev->link_keys);
1653 INIT_LIST_HEAD(&hdev->long_term_keys); 1653 INIT_LIST_HEAD(&hdev->long_term_keys);
1654 INIT_LIST_HEAD(&hdev->remote_oob_data); 1654 INIT_LIST_HEAD(&hdev->remote_oob_data);
1655 INIT_LIST_HEAD(&hdev->conn_hash.list);
1655 1656
1656 INIT_WORK(&hdev->rx_work, hci_rx_work); 1657 INIT_WORK(&hdev->rx_work, hci_rx_work);
1657 INIT_WORK(&hdev->cmd_work, hci_cmd_work); 1658 INIT_WORK(&hdev->cmd_work, hci_cmd_work);
@@ -1674,7 +1675,6 @@ struct hci_dev *hci_alloc_dev(void)
1674 1675
1675 hci_init_sysfs(hdev); 1676 hci_init_sysfs(hdev);
1676 discovery_init(hdev); 1677 discovery_init(hdev);
1677 hci_conn_hash_init(hdev);
1678 1678
1679 return hdev; 1679 return hdev;
1680} 1680}