Bluetooth: hci_conn: remove extra line in hci_le_big_create_sync
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Tue, 11 Apr 2023 07:41:35 +0000 (10:41 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 24 Apr 2023 05:02:28 +0000 (22:02 -0700)
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>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c

index 5672b49..01e0b72 100644 (file)
@@ -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);
 }