summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2024-08-10 22:14:15 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-09-10 13:04:59 -0400
commitfe4408da5bfd495e0eeea684932a267254f76f11 (patch)
tree9565541f6a2e6a3ba3501d46993948c19e2ea4b5 /net/bluetooth/hci_conn.c
parent2fcb7936cef3a045ced9d5b8cdb644bced9f99b5 (diff)
downloadlinux-stable-fe4408da5bfd495e0eeea684932a267254f76f11.tar.gz
linux-stable-fe4408da5bfd495e0eeea684932a267254f76f11.tar.bz2
linux-stable-fe4408da5bfd495e0eeea684932a267254f76f11.zip
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>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index c82502e213a8..323d397b0e92 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -778,7 +778,6 @@ static int hci_le_big_terminate(struct hci_dev *hdev, u8 big, struct hci_conn *c
if (!d)
return -ENOMEM;
- memset(d, 0, sizeof(*d));
d->big = big;
d->sync_handle = conn->sync_handle;