diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2008-03-05 21:47:40 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-03-05 21:47:40 -0500 |
| commit | a4e2acf01a7e5fcd960fc332335ca10313641f4b (patch) | |
| tree | fc6fa7b3f8c74c46aee76a4f62bad997297e3129 | |
| parent | 04005dd9ae7bf1031408869c33df96149ebb1086 (diff) | |
bluetooth: make bnep_sock_cleanup() return void
bnep_sock_cleanup() always returns 0 and its return value isn't used
anywhere in the code.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/bluetooth/bnep/bnep.h | 2 | ||||
| -rw-r--r-- | net/bluetooth/bnep/sock.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/net/bluetooth/bnep/bnep.h b/net/bluetooth/bnep/bnep.h index a2992280c3d1..e69244dd8de8 100644 --- a/net/bluetooth/bnep/bnep.h +++ b/net/bluetooth/bnep/bnep.h | |||
| @@ -174,7 +174,7 @@ struct bnep_session { | |||
| 174 | 174 | ||
| 175 | void bnep_net_setup(struct net_device *dev); | 175 | void bnep_net_setup(struct net_device *dev); |
| 176 | int bnep_sock_init(void); | 176 | int bnep_sock_init(void); |
| 177 | int bnep_sock_cleanup(void); | 177 | void bnep_sock_cleanup(void); |
| 178 | 178 | ||
| 179 | static inline int bnep_mc_hash(__u8 *addr) | 179 | static inline int bnep_mc_hash(__u8 *addr) |
| 180 | { | 180 | { |
diff --git a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c index 81065e548a1f..201e5b1ce473 100644 --- a/net/bluetooth/bnep/sock.c +++ b/net/bluetooth/bnep/sock.c | |||
| @@ -257,12 +257,10 @@ error: | |||
| 257 | return err; | 257 | return err; |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | int __exit bnep_sock_cleanup(void) | 260 | void __exit bnep_sock_cleanup(void) |
| 261 | { | 261 | { |
| 262 | if (bt_sock_unregister(BTPROTO_BNEP) < 0) | 262 | if (bt_sock_unregister(BTPROTO_BNEP) < 0) |
| 263 | BT_ERR("Can't unregister BNEP socket"); | 263 | BT_ERR("Can't unregister BNEP socket"); |
| 264 | 264 | ||
| 265 | proto_unregister(&bnep_proto); | 265 | proto_unregister(&bnep_proto); |
| 266 | |||
| 267 | return 0; | ||
| 268 | } | 266 | } |
