diff mbox series

[1/1] Bluetooth: hci_conn: remove extra line in hci_le_big_create_sync

Message ID 20230411074135.69768-2-iulia.tanasescu@nxp.com
State Accepted
Commit 980f79c984e039edc5afe64780cf43c18b563638
Headers show
Series Bluetooth: hci_conn: remove extra line in hci_le_big_create_sync | expand

Commit Message

Iulia Tanasescu April 11, 2023, 7:41 a.m. UTC
Remove extra line setting the broadcast code parameter of the
hci_cp_le_create_big struct to 0. The broadcast code is copied
from the QoS struct.

Signed-off-by: Iulia Tanasescu <iulia.tanasescu@nxp.com>
---
 net/bluetooth/hci_conn.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 5672b4924572..01e0b7255174 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -1700,7 +1700,6 @@  static int hci_le_create_big(struct hci_conn *conn, struct bt_iso_qos *qos)
 	cp.bis.framing = qos->bcast.framing;
 	cp.bis.encryption = qos->bcast.encryption;
 	memcpy(cp.bis.bcode, qos->bcast.bcode, sizeof(cp.bis.bcode));
-	memset(&cp.bis.bcode, 0, sizeof(cp.bis.bcode));
 
 	return hci_send_cmd(hdev, HCI_OP_LE_CREATE_BIG, sizeof(cp), &cp);
 }