diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2011-10-26 04:43:19 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-11-07 14:24:41 -0500 |
commit | 59735631d24e3463f139a21255e0db94bc59081e (patch) | |
tree | cfaddbca078cbfd5af6f39802a183b6d8b1801d6 /net/bluetooth/hci_core.c | |
parent | 13ea4015d37d2dbe597580898b5fafbe6f593f72 (diff) |
Bluetooth: Make hci_unregister_dev return void
hci_unregister_dev cannot fail and always returns 0. The drivers already ignore
the return value so we can safely make it return void.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index fdcbf8fc26ad..557ff90331b9 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -1541,7 +1541,7 @@ err: | |||
1541 | EXPORT_SYMBOL(hci_register_dev); | 1541 | EXPORT_SYMBOL(hci_register_dev); |
1542 | 1542 | ||
1543 | /* Unregister HCI device */ | 1543 | /* Unregister HCI device */ |
1544 | int hci_unregister_dev(struct hci_dev *hdev) | 1544 | void hci_unregister_dev(struct hci_dev *hdev) |
1545 | { | 1545 | { |
1546 | int i; | 1546 | int i; |
1547 | 1547 | ||
@@ -1583,8 +1583,6 @@ int hci_unregister_dev(struct hci_dev *hdev) | |||
1583 | hci_dev_unlock_bh(hdev); | 1583 | hci_dev_unlock_bh(hdev); |
1584 | 1584 | ||
1585 | __hci_dev_put(hdev); | 1585 | __hci_dev_put(hdev); |
1586 | |||
1587 | return 0; | ||
1588 | } | 1586 | } |
1589 | EXPORT_SYMBOL(hci_unregister_dev); | 1587 | EXPORT_SYMBOL(hci_unregister_dev); |
1590 | 1588 | ||