Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277702
b: refs/heads/master
c: 13ea401
h: refs/heads/master
v: v3
  • Loading branch information
David Herrmann authored and Gustavo F. Padovan committed Nov 7, 2011
1 parent 78dd432 commit e5e22ec
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96af7391b752cf3d2de3aef8f03c45ba76d3ac5e
refs/heads/master: 13ea4015d37d2dbe597580898b5fafbe6f593f72
4 changes: 1 addition & 3 deletions trunk/drivers/bluetooth/bfusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,7 @@ static void bfusb_disconnect(struct usb_interface *intf)

bfusb_close(hdev);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);
}

Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/bluetooth/bluecard_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,7 @@ static int bluecard_close(bluecard_info_t *info)
/* Turn FPGA off */
outb(0x80, iobase + 0x30);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/bluetooth/bt3c_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,7 @@ static int bt3c_close(bt3c_info_t *info)

bt3c_hci_close(hdev);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/bluetooth/btuart_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,7 @@ static int btuart_close(btuart_info_t *info)

spin_unlock_irqrestore(&(info->lock), flags);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/bluetooth/dtl1_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,7 @@ static int dtl1_close(dtl1_info_t *info)

spin_unlock_irqrestore(&(info->lock), flags);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,7 @@ static int vhci_release(struct inode *inode, struct file *file)
struct vhci_data *data = file->private_data;
struct hci_dev *hdev = data->hdev;

if (hci_unregister_dev(hdev) < 0) {
BT_ERR("Can't unregister HCI device %s", hdev->name);
}

hci_unregister_dev(hdev);
hci_free_dev(hdev);

file->private_data = NULL;
Expand Down

0 comments on commit e5e22ec

Please sign in to comment.