diff options
Diffstat (limited to 'drivers/bluetooth/bpa10x.c')
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 59b892464be5..88e004ee137e 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c | |||
@@ -304,9 +304,6 @@ static int bpa10x_open(struct hci_dev *hdev) | |||
304 | 304 | ||
305 | BT_DBG("%s", hdev->name); | 305 | BT_DBG("%s", hdev->name); |
306 | 306 | ||
307 | if (test_and_set_bit(HCI_RUNNING, &hdev->flags)) | ||
308 | return 0; | ||
309 | |||
310 | err = bpa10x_submit_intr_urb(hdev); | 307 | err = bpa10x_submit_intr_urb(hdev); |
311 | if (err < 0) | 308 | if (err < 0) |
312 | goto error; | 309 | goto error; |
@@ -320,8 +317,6 @@ static int bpa10x_open(struct hci_dev *hdev) | |||
320 | error: | 317 | error: |
321 | usb_kill_anchored_urbs(&data->rx_anchor); | 318 | usb_kill_anchored_urbs(&data->rx_anchor); |
322 | 319 | ||
323 | clear_bit(HCI_RUNNING, &hdev->flags); | ||
324 | |||
325 | return err; | 320 | return err; |
326 | } | 321 | } |
327 | 322 | ||
@@ -331,9 +326,6 @@ static int bpa10x_close(struct hci_dev *hdev) | |||
331 | 326 | ||
332 | BT_DBG("%s", hdev->name); | 327 | BT_DBG("%s", hdev->name); |
333 | 328 | ||
334 | if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags)) | ||
335 | return 0; | ||
336 | |||
337 | usb_kill_anchored_urbs(&data->rx_anchor); | 329 | usb_kill_anchored_urbs(&data->rx_anchor); |
338 | 330 | ||
339 | return 0; | 331 | return 0; |