bluetooth: make bnep_sock_cleanup() return void
Subsystems (3)
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.
Signed-off-by Tobias Klauser <[email protected]>
Cc Marcel Holtmann <[email protected]>
Cc Dave Young <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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
@@ -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
@@ -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 ; }
_
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.Signed-off-by Tobias Klauser <[email protected]>Cc Marcel Holtmann <[email protected]>Cc Dave Young <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Acked-by Marcel Holtmann <[email protected]>
Dave, I can queue these up if you don't wanna grab them into netdev tree by yourself.
Regards
Marcel
From: [email protected]
Date: Tue, 04 Mar 2008 15:18:24 -0800
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.Signed-off-by Tobias Klauser <[email protected]>Cc Marcel Holtmann <[email protected]>Cc Dave Young <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied.