提交 cecbb967 编写于 作者: J Johan Hedberg 提交者: Gustavo Padovan

Bluetooth: Remove unused hdev->init_last_cmd

This variable is no longer needed (due to async HCI request support and
the conversion of hci_req_sync to use it), so it can be safely removed.
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
上级 42c6b129
...@@ -248,8 +248,6 @@ struct hci_dev { ...@@ -248,8 +248,6 @@ struct hci_dev {
__u32 req_status; __u32 req_status;
__u32 req_result; __u32 req_result;
__u16 init_last_cmd;
struct list_head mgmt_pending; struct list_head mgmt_pending;
struct discovery_state discovery; struct discovery_state discovery;
......
...@@ -1015,10 +1015,7 @@ int hci_dev_open(__u16 dev) ...@@ -1015,10 +1015,7 @@ int hci_dev_open(__u16 dev)
if (!test_bit(HCI_RAW, &hdev->flags)) { if (!test_bit(HCI_RAW, &hdev->flags)) {
atomic_set(&hdev->cmd_cnt, 1); atomic_set(&hdev->cmd_cnt, 1);
set_bit(HCI_INIT, &hdev->flags); set_bit(HCI_INIT, &hdev->flags);
hdev->init_last_cmd = 0;
ret = __hci_init(hdev); ret = __hci_init(hdev);
clear_bit(HCI_INIT, &hdev->flags); clear_bit(HCI_INIT, &hdev->flags);
} }
...@@ -2509,9 +2506,6 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param) ...@@ -2509,9 +2506,6 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param)
return -ENOMEM; return -ENOMEM;
} }
if (test_bit(HCI_INIT, &hdev->flags))
hdev->init_last_cmd = opcode;
/* Stand-alone HCI commands must be flaged as /* Stand-alone HCI commands must be flaged as
* single-command requests. * single-command requests.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册