]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: hci_conn: Remove redundant memset after kzalloc
authorKuan-Wei Chiu <visitorckw@gmail.com>
Sat, 10 Aug 2024 14:14:15 +0000 (22:14 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Sep 2024 17:04:59 +0000 (13:04 -0400)
commitfe4408da5bfd495e0eeea684932a267254f76f11
tree9565541f6a2e6a3ba3501d46993948c19e2ea4b5
parent2fcb7936cef3a045ced9d5b8cdb644bced9f99b5
Bluetooth: hci_conn: Remove redundant memset after kzalloc

Since kzalloc already zeroes the allocated memory, the subsequent
memset call is unnecessary. This patch removes the redundant memset to
clean up the code and enhance efficiency.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c