Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290856
b: refs/heads/master
c: bf18c71
h: refs/heads/master
v: v3
  • Loading branch information
David Herrmann authored and Johan Hedberg committed Feb 13, 2012
1 parent 537464d commit 3422082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: aed014a02e809bd228a8ce7e7cc432ded9b72ef6
refs/heads/master: bf18c7118cf83ad4b9aa476354b4a06bcb9d0c4f
7 changes: 1 addition & 6 deletions trunk/drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ static int vhci_send_frame(struct sk_buff *skb)
return 0;
}

static void vhci_destruct(struct hci_dev *hdev)
{
kfree(hdev->driver_data);
}

static inline ssize_t vhci_get_user(struct vhci_data *data,
const char __user *buf, size_t count)
{
Expand Down Expand Up @@ -248,7 +243,6 @@ static int vhci_open(struct inode *inode, struct file *file)
hdev->close = vhci_close_dev;
hdev->flush = vhci_flush;
hdev->send = vhci_send_frame;
hdev->destruct = vhci_destruct;

hdev->owner = THIS_MODULE;

Expand All @@ -273,6 +267,7 @@ static int vhci_release(struct inode *inode, struct file *file)
hci_free_dev(hdev);

file->private_data = NULL;
kfree(data);

return 0;
}
Expand Down

0 comments on commit 3422082

Please sign in to comment.