diff options
author | Kuan-Wei Chiu <visitorckw@gmail.com> | 2024-08-10 17:14:15 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-09-10 20:04:59 +0300 |
commit | fe4408da5bfd495e0eeea684932a267254f76f11 (patch) | |
tree | 9565541f6a2e6a3ba3501d46993948c19e2ea4b5 | |
parent | 2fcb7936cef3a045ced9d5b8cdb644bced9f99b5 (diff) | |
download | linux-fe4408da5bfd495e0eeea684932a267254f76f11.tar.xz |
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>
-rw-r--r-- | net/bluetooth/hci_conn.c | 1 |
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; |