Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 550a8ca7 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent d6dac32e
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1187,7 +1187,6 @@ static void adv_timeout_expire(struct work_struct *work)
	if (list_empty(&hdev->adv_instances))
	if (list_empty(&hdev->adv_instances))
		__hci_req_disable_advertising(&req);
		__hci_req_disable_advertising(&req);


	if (!skb_queue_empty(&req.cmd_q))
	hci_req_run(&req, NULL);
	hci_req_run(&req, NULL);


unlock:
unlock: