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) {
|
||||
BT_ERR("Unable to send to driver (err %d)", err);
|
||||
nano_fiber_sem_give(&bt_dev.ncmd_sem);
|
||||
net_buf_unref(bt_dev.sent_cmd);
|
||||
bt_dev.sent_cmd = NULL;
|
||||
hci_cmd_done(cmd(buf)->opcode, BT_HCI_ERR_UNSPECIFIED,
|
||||
NULL);
|
||||
net_buf_unref(buf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue