aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-27 04:11:52 -0500
committerMarcel Holtmann <marcel@holtmann.org>2015-12-09 18:51:49 -0500
commit550a8ca765a154ca38dcd888b4f12a173e761bdc (patch)
tree21abbea28865bf6aa8922bcd0bfdbf11030b5cae /net/bluetooth/hci_request.c
parentd6dac32e84e407ba15f257b5df2f4cb263005ab4 (diff)
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>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r--net/bluetooth/hci_request.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c
index edf2199de4ff..f1529d7740f6 100644
--- a/net/bluetooth/hci_request.c
+++ b/net/bluetooth/hci_request.c
@@ -1187,8 +1187,7 @@ static void adv_timeout_expire(struct work_struct *work)
1187 if (list_empty(&hdev->adv_instances)) 1187 if (list_empty(&hdev->adv_instances))
1188 __hci_req_disable_advertising(&req); 1188 __hci_req_disable_advertising(&req);
1189 1189
1190 if (!skb_queue_empty(&req.cmd_q)) 1190 hci_req_run(&req, NULL);
1191 hci_req_run(&req, NULL);
1192 1191
1193unlock: 1192unlock:
1194 hci_dev_unlock(hdev); 1193 hci_dev_unlock(hdev);