Skip to content

Commit fd87b39

Browse files
MariuszSkamracarlescufi
authored andcommitted
Bluetooth: ascs: Fix compilation warning
This fixes uninitialized `ret` variable compilation warning. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent d514780 commit fd87b39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/audio/ascs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,7 @@ static ssize_t ascs_cp_write(struct bt_conn *conn,
19601960
ascs_cp_rsp_add(0x00, req->op, BT_ASCS_RSP_NOT_SUPPORTED, 0);
19611961
BT_DBG("Unknown opcode");
19621962
len = BT_GATT_ERR(BT_ATT_ERR_NOT_SUPPORTED);
1963+
goto respond;
19631964
}
19641965

19651966
if (ret == BT_GATT_ERR(BT_ATT_ERR_INVALID_ATTRIBUTE_LEN)) {

0 commit comments

Comments
 (0)