Skip to content

Commit

Permalink
bluetooth: Make hci_sock_cleanup() return void
Browse files Browse the repository at this point in the history
hci_sock_cleanup() always returns 0 and its return value isn't used
anywhere in the code.

Compile-tested with 'make allyesconfig && make net/bluetooth/bluetooth.ko'

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Mar 6, 2008
1 parent 147e2d5 commit 04005dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/net/bluetooth/bluetooth.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static inline int skb_frags_no(struct sk_buff *skb)
int bt_err(__u16 code);

extern int hci_sock_init(void);
extern int hci_sock_cleanup(void);
extern void hci_sock_cleanup(void);

extern int bt_sysfs_init(void);
extern void bt_sysfs_cleanup(void);
Expand Down
4 changes: 1 addition & 3 deletions net/bluetooth/hci_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,14 +734,12 @@ int __init hci_sock_init(void)
return err;
}

int __exit hci_sock_cleanup(void)
void __exit hci_sock_cleanup(void)
{
if (bt_sock_unregister(BTPROTO_HCI) < 0)
BT_ERR("HCI socket unregistration failed");

hci_unregister_notifier(&hci_sock_nblock);

proto_unregister(&hci_sk_proto);

return 0;
}

0 comments on commit 04005dd

Please sign in to comment.