Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Remove unneeded zero init
@ 2012-08-30  9:04 Andrei Emeltchenko
  2012-08-30 15:06 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Andrei Emeltchenko @ 2012-08-30  9:04 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

hdev is allocated with kzalloc so zero initialization is not needed.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 include/net/bluetooth/hci_core.h |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 36720f0..05bcea6 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -443,10 +443,8 @@ static inline bool hci_conn_ssp_enabled(struct hci_conn *conn)
 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)
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-31 17:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-30  9:04 [PATCH] Bluetooth: Remove unneeded zero init Andrei Emeltchenko
2012-08-30 15:06 ` Marcel Holtmann
2012-08-31 13:39   ` [PATCHv2] " Andrei Emeltchenko
2012-08-31 16:20     ` Marcel Holtmann
2012-08-31 17:55     ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox