* [patch 1/2] bluetooth: Make hci_sock_cleanup() return void
@ 2008-03-04 23:18 akpm
2008-03-05 8:50 ` Marcel Holtmann
2008-03-06 2:47 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: akpm @ 2008-03-04 23:18 UTC (permalink / raw)
To: davem; +Cc: marcel, hidave.darkstar, netdev, linux-bluetooth, akpm, tklauser
From: Tobias Klauser <tklauser@distanz.ch>
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>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/net/bluetooth/bluetooth.h | 2 +-
net/bluetooth/hci_sock.c | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff -puN include/net/bluetooth/bluetooth.h~bluetooth-make-hci_sock_cleanup-return-void include/net/bluetooth/bluetooth.h
--- a/include/net/bluetooth/bluetooth.h~bluetooth-make-hci_sock_cleanup-return-void
+++ a/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);
diff -puN net/bluetooth/hci_sock.c~bluetooth-make-hci_sock_cleanup-return-void net/bluetooth/hci_sock.c
--- a/net/bluetooth/hci_sock.c~bluetooth-make-hci_sock_cleanup-return-void
+++ a/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;
}
_
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 1/2] bluetooth: Make hci_sock_cleanup() return void
2008-03-04 23:18 [patch 1/2] bluetooth: Make hci_sock_cleanup() return void akpm
@ 2008-03-05 8:50 ` Marcel Holtmann
2008-03-05 19:14 ` David Miller
2008-03-06 2:47 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2008-03-05 8:50 UTC (permalink / raw)
To: akpm; +Cc: davem, hidave.darkstar, netdev, linux-bluetooth, tklauser
Hi Andrew,
> From: Tobias Klauser <tklauser@distanz.ch>
>
> 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>
> Cc: Marcel Holtmann <marcel@holtmann.org>
> Cc: Dave Young <hidave.darkstar@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Dave, I can queue these up if you don't wanna grab them into netdev
tree by yourself.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 1/2] bluetooth: Make hci_sock_cleanup() return void
2008-03-05 8:50 ` Marcel Holtmann
@ 2008-03-05 19:14 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2008-03-05 19:14 UTC (permalink / raw)
To: marcel; +Cc: akpm, hidave.darkstar, netdev, linux-bluetooth, tklauser
From: Marcel Holtmann <marcel@holtmann.org>
Date: Wed, 5 Mar 2008 09:50:39 +0100
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 1/2] bluetooth: Make hci_sock_cleanup() return void
2008-03-04 23:18 [patch 1/2] bluetooth: Make hci_sock_cleanup() return void akpm
2008-03-05 8:50 ` Marcel Holtmann
@ 2008-03-06 2:47 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2008-03-06 2:47 UTC (permalink / raw)
To: akpm; +Cc: marcel, hidave.darkstar, netdev, linux-bluetooth, tklauser
From: akpm@linux-foundation.org
Date: Tue, 04 Mar 2008 15:18:22 -0800
> From: Tobias Klauser <tklauser@distanz.ch>
>
> 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>
> Cc: Marcel Holtmann <marcel@holtmann.org>
> Cc: Dave Young <hidave.darkstar@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-06 2:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-04 23:18 [patch 1/2] bluetooth: Make hci_sock_cleanup() return void akpm
2008-03-05 8:50 ` Marcel Holtmann
2008-03-05 19:14 ` David Miller
2008-03-06 2:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).