diff options
Diffstat (limited to 'drivers/bluetooth/hci_ldisc.c')
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 48ad2a7ab080..5ea49df3462b 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -231,15 +231,6 @@ static int hci_uart_send_frame(struct sk_buff *skb) | |||
231 | return 0; | 231 | return 0; |
232 | } | 232 | } |
233 | 233 | ||
234 | static void hci_uart_destruct(struct hci_dev *hdev) | ||
235 | { | ||
236 | if (!hdev) | ||
237 | return; | ||
238 | |||
239 | BT_DBG("%s", hdev->name); | ||
240 | kfree(hdev->driver_data); | ||
241 | } | ||
242 | |||
243 | /* ------ LDISC part ------ */ | 234 | /* ------ LDISC part ------ */ |
244 | /* hci_uart_tty_open | 235 | /* hci_uart_tty_open |
245 | * | 236 | * |
@@ -316,6 +307,8 @@ static void hci_uart_tty_close(struct tty_struct *tty) | |||
316 | hci_free_dev(hdev); | 307 | hci_free_dev(hdev); |
317 | } | 308 | } |
318 | } | 309 | } |
310 | |||
311 | kfree(hu); | ||
319 | } | 312 | } |
320 | } | 313 | } |
321 | 314 | ||
@@ -397,7 +390,6 @@ static int hci_uart_register_dev(struct hci_uart *hu) | |||
397 | hdev->close = hci_uart_close; | 390 | hdev->close = hci_uart_close; |
398 | hdev->flush = hci_uart_flush; | 391 | hdev->flush = hci_uart_flush; |
399 | hdev->send = hci_uart_send_frame; | 392 | hdev->send = hci_uart_send_frame; |
400 | hdev->destruct = hci_uart_destruct; | ||
401 | hdev->parent = hu->tty->dev; | 393 | hdev->parent = hu->tty->dev; |
402 | 394 | ||
403 | hdev->owner = THIS_MODULE; | 395 | hdev->owner = THIS_MODULE; |