Skip to content

Commit 04005dd

Browse files
tklauserdavem330
authored andcommitted
bluetooth: Make hci_sock_cleanup() return void
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>
1 parent 147e2d5 commit 04005dd

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎include/net/bluetooth/bluetooth.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static inline int skb_frags_no(struct sk_buff *skb)
170170
int bt_err(__u16 code);
171171

172172
extern int hci_sock_init(void);
173-
extern int hci_sock_cleanup(void);
173+
extern void hci_sock_cleanup(void);
174174

175175
extern int bt_sysfs_init(void);
176176
extern void bt_sysfs_cleanup(void);

‎net/bluetooth/hci_sock.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,14 +734,12 @@ int __init hci_sock_init(void)
734734
return err;
735735
}
736736

737-
int __exit hci_sock_cleanup(void)
737+
void __exit hci_sock_cleanup(void)
738738
{
739739
if (bt_sock_unregister(BTPROTO_HCI) < 0)
740740
BT_ERR("HCI socket unregistration failed");
741741

742742
hci_unregister_notifier(&hci_sock_nblock);
743743

744744
proto_unregister(&hci_sk_proto);
745-
746-
return 0;
747745
}

0 commit comments

Comments
 (0)