Skip to contentSkip to conversation

bluetooth: Make hci_sock_cleanup() return void

PATCH Applied [email protected] 3 participants 4 messages Mar 4, 2008 – Mar 6, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bluetooth: Make hci_sock_cleanup() return void

From: Tobias Klauser <[email protected]>

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'

---

 include/net/bluetooth/bluetooth.h |    2 +-
 net/bluetooth/hci_sock.c          |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
include/net/bluetooth/bluetooth.h renamed from include/net/bluetooth/bluetooth.h~bluetooth-make-hci_sock_cleanup-return-void +1 -1
diff -puN include/net/bluetooth/bluetooth.h~bluetooth-make-hci_sock_cleanup-return-void include/net/bluetooth/bluetooth.h
@@ -170,7 +170,7 @@ static inline int skb_frags_no(struct sk
 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);
net/bluetooth/hci_sock.c renamed from net/bluetooth/hci_sock.c~bluetooth-make-hci_sock_cleanup-return-void +1 -3
diff -puN net/bluetooth/hci_sock.c~bluetooth-make-hci_sock_cleanup-return-void net/bluetooth/hci_sock.c
@@ -734,7 +734,7 @@ error:
 	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");
@@ -742,6 +742,4 @@ int __exit hci_sock_cleanup(void)
 	hci_unregister_notifier(&hci_sock_nblock);
 
 	proto_unregister(&hci_sk_proto);
-
-	return 0;
 }

_

maintainer Acked-by on v1 1/2
#1 lore raw

Hi Andrew,

Quoted 11 lines

From: Tobias Klauser <[email protected]>

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'

Dave, I can queue these up if you don't wanna grab them into netdev tree by yourself.

Regards

Marcel

maintainer
#2 lore raw

From: Marcel Holtmann <[email protected]>
Date: Wed, 5 Mar 2008 09:50:39 +0100

Quoted 2 lines

Dave, I can queue these up if you don't wanna grab them into netdev tree by yourself.

I'll take care of it, thanks.

maintainer Applied
#3 lore raw
In reply to [email protected]

From: [email protected]
Date: Tue, 04 Mar 2008 15:18:22 -0800

Quoted 11 lines

From: Tobias Klauser <[email protected]>

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'

Applied.