mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 16:11:04 +00:00
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: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
d6dac32e84
commit
550a8ca765
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user