Skip to content

Commit

Permalink
bluetooth: make bnep_sock_cleanup() return void
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Mar 6, 2008
1 parent 04005dd commit a4e2acf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net/bluetooth/bnep/bnep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 1 addition & 3 deletions net/bluetooth/bnep/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,10 @@ int __init bnep_sock_init(void)
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;
}

0 comments on commit a4e2acf

Please sign in to comment.