diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-10-05 00:34:01 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-10-05 10:30:10 +0300 |
commit | 73d0d3c8671190ea982a8e79a7c79fbfe88f8f47 (patch) | |
tree | 5a994705148d72200a441ca53e53694c2810b993 /drivers/bluetooth/hci_vhci.c | |
parent | 4a3f95b7b62e50a1e42e42ba6571ec9e747f4861 (diff) | |
download | linux-73d0d3c8671190ea982a8e79a7c79fbfe88f8f47.tar.xz |
Bluetooth: Move HCI_RUNNING check into hci_send_frame
In all callbacks for hdev->send the status of HCI_RUNNING is checked. So
instead of repeating that code in every driver, move the check into the
hci_send_frame function before calling hdev->send.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_vhci.c')
-rw-r--r-- | drivers/bluetooth/hci_vhci.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 78653db2ef2b..15c344c9a00d 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c @@ -85,9 +85,6 @@ static int vhci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) { struct vhci_data *data = hci_get_drvdata(hdev); - if (!test_bit(HCI_RUNNING, &hdev->flags)) - return -EBUSY; - memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); skb_queue_tail(&data->readq, skb); |