提交 550a8ca7 编写于 作者: J Johan Hedberg 提交者: Marcel Holtmann

Bluetooth: Remove redundant check for req.cmd_q

The hci_req_run() function already checks for empty cmd_q and bails
out if necessary. Also, req.cmd_q should really be treated as private
data of the request and not accessed directly.
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 d6dac32e
......@@ -1187,8 +1187,7 @@ static void adv_timeout_expire(struct work_struct *work)
if (list_empty(&hdev->adv_instances))
__hci_req_disable_advertising(&req);
if (!skb_queue_empty(&req.cmd_q))
hci_req_run(&req, NULL);
hci_req_run(&req, NULL);
unlock:
hci_dev_unlock(hdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册