Commit fe4408da authored by Kuan-Wei Chiu's avatar Kuan-Wei Chiu Committed by Luiz Augusto von Dentz

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: default avatarKuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 2fcb7936
...@@ -778,7 +778,6 @@ static int hci_le_big_terminate(struct hci_dev *hdev, u8 big, struct 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) if (!d)
return -ENOMEM; return -ENOMEM;
memset(d, 0, sizeof(*d));
d->big = big; d->big = big;
d->sync_handle = conn->sync_handle; d->sync_handle = conn->sync_handle;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment