Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290861
b: refs/heads/master
c: 797fe79
h: refs/heads/master
i:
  290859: cbb3faf
v: v3
  • Loading branch information
David Herrmann authored and Johan Hedberg committed Feb 13, 2012
1 parent 368bcdb commit 31e512b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: dabbaab394d17ba1d1b55092d553e6e31a3d0afd
refs/heads/master: 797fe796c4335b35d95d5326824513befdb5d1e9
12 changes: 2 additions & 10 deletions trunk/drivers/bluetooth/hci_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,6 @@ static int hci_uart_send_frame(struct sk_buff *skb)
return 0;
}

static void hci_uart_destruct(struct hci_dev *hdev)
{
if (!hdev)
return;

BT_DBG("%s", hdev->name);
kfree(hdev->driver_data);
}

/* ------ LDISC part ------ */
/* hci_uart_tty_open
*
Expand Down Expand Up @@ -316,6 +307,8 @@ static void hci_uart_tty_close(struct tty_struct *tty)
hci_free_dev(hdev);
}
}

kfree(hu);
}
}

Expand Down Expand Up @@ -397,7 +390,6 @@ static int hci_uart_register_dev(struct hci_uart *hu)
hdev->close = hci_uart_close;
hdev->flush = hci_uart_flush;
hdev->send = hci_uart_send_frame;
hdev->destruct = hci_uart_destruct;
hdev->parent = hu->tty->dev;

hdev->owner = THIS_MODULE;
Expand Down

0 comments on commit 31e512b

Please sign in to comment.