|
@@ -2529,7 +2529,7 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param)
|
|
|
}
|
|
|
|
|
|
/* Queue a command to an asynchronous HCI request */
|
|
|
-int hci_req_add(struct hci_request *req, u16 opcode, u32 plen, void *param)
|
|
|
+void hci_req_add(struct hci_request *req, u16 opcode, u32 plen, void *param)
|
|
|
{
|
|
|
struct hci_dev *hdev = req->hdev;
|
|
|
struct sk_buff *skb;
|
|
@@ -2541,15 +2541,13 @@ int hci_req_add(struct hci_request *req, u16 opcode, u32 plen, void *param)
|
|
|
BT_ERR("%s no memory for command (opcode 0x%4.4x)",
|
|
|
hdev->name, opcode);
|
|
|
req->err = -ENOMEM;
|
|
|
- return -ENOMEM;
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
if (skb_queue_empty(&req->cmd_q))
|
|
|
bt_cb(skb)->req.start = true;
|
|
|
|
|
|
skb_queue_tail(&req->cmd_q, skb);
|
|
|
-
|
|
|
- return 0;
|
|
|
}
|
|
|
|
|
|
/* Get data from the previously sent command */
|