Bluetooth: ascs: Fix compilation warning
This fixes uninitialized `ret` variable compilation warning. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
d5147803f0
commit
fd87b39d80
|
@ -1960,6 +1960,7 @@ static ssize_t ascs_cp_write(struct bt_conn *conn,
|
|||
ascs_cp_rsp_add(0x00, req->op, BT_ASCS_RSP_NOT_SUPPORTED, 0);
|
||||
BT_DBG("Unknown opcode");
|
||||
len = BT_GATT_ERR(BT_ATT_ERR_NOT_SUPPORTED);
|
||||
goto respond;
|
||||
}
|
||||
|
||||
if (ret == BT_GATT_ERR(BT_ATT_ERR_INVALID_ATTRIBUTE_LEN)) {
|
||||
|
|
Loading…
Reference in a new issue