Skip to contentSkip to conversation

bluetooth: make bnep_sock_cleanup() return void

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

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

PATCH 2/2 bluetooth: make bnep_sock_cleanup() return void

From: Tobias Klauser <[email protected]>

bnep_sock_cleanup() always returns 0 and its return value isn't used anywhere in the code.

---

 net/bluetooth/bnep/bnep.h |    2 +-
 net/bluetooth/bnep/sock.c |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
net/bluetooth/bnep/bnep.h renamed from net/bluetooth/bnep/bnep.h~bluetooth-make-bnep_sock_cleanup-return-void +1 -1
diff -puN net/bluetooth/bnep/bnep.h~bluetooth-make-bnep_sock_cleanup-return-void net/bluetooth/bnep/bnep.h
@@ -174,7 +174,7 @@ struct bnep_session {
 
 void bnep_net_setup(struct net_device *dev);
 int bnep_sock_init(void);
-int bnep_sock_cleanup(void);
+void bnep_sock_cleanup(void);
 
 static inline int bnep_mc_hash(__u8 *addr)
 {
net/bluetooth/bnep/sock.c renamed from net/bluetooth/bnep/sock.c~bluetooth-make-bnep_sock_cleanup-return-void +1 -3
diff -puN net/bluetooth/bnep/sock.c~bluetooth-make-bnep_sock_cleanup-return-void net/bluetooth/bnep/sock.c
@@ -257,12 +257,10 @@ error:
 	return err;
 }
 
-int __exit bnep_sock_cleanup(void)
+void __exit bnep_sock_cleanup(void)
 {
 	if (bt_sock_unregister(BTPROTO_BNEP) < 0)
 		BT_ERR("Can't unregister BNEP socket");
 
 	proto_unregister(&bnep_proto);
-
-	return 0;
 }

_

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

Hi Andrew,

Quoted 9 lines

From: Tobias Klauser <[email protected]>

bnep_sock_cleanup() always returns 0 and its return value isn't used anywhere in the code.

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

Regards

Marcel