Bluetooth: Take advantage of hci_cmd_done() helper
Change-Id: Id4945656407e567dcfe764d5d4df04427c8483af Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
809a4b847f
commit
54f5600fb5
1 changed files with 2 additions and 2 deletions
|
@ -1924,8 +1924,8 @@ static void hci_cmd_tx_fiber(void)
|
||||||
if (err) {
|
if (err) {
|
||||||
BT_ERR("Unable to send to driver (err %d)", err);
|
BT_ERR("Unable to send to driver (err %d)", err);
|
||||||
nano_fiber_sem_give(&bt_dev.ncmd_sem);
|
nano_fiber_sem_give(&bt_dev.ncmd_sem);
|
||||||
net_buf_unref(bt_dev.sent_cmd);
|
hci_cmd_done(cmd(buf)->opcode, BT_HCI_ERR_UNSPECIFIED,
|
||||||
bt_dev.sent_cmd = NULL;
|
NULL);
|
||||||
net_buf_unref(buf);
|
net_buf_unref(buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue