Skip to content

Commit a4e2acf

Browse files
tklauserdavem330
authored andcommitted
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>
1 parent 04005dd commit a4e2acf

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎net/bluetooth/bnep/bnep.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ struct bnep_session {
174174

175175
void bnep_net_setup(struct net_device *dev);
176176
int bnep_sock_init(void);
177-
int bnep_sock_cleanup(void);
177+
void bnep_sock_cleanup(void);
178178

179179
static inline int bnep_mc_hash(__u8 *addr)
180180
{

‎net/bluetooth/bnep/sock.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,10 @@ int __init bnep_sock_init(void)
257257
return err;
258258
}
259259

260-
int __exit bnep_sock_cleanup(void)
260+
void __exit bnep_sock_cleanup(void)
261261
{
262262
if (bt_sock_unregister(BTPROTO_BNEP) < 0)
263263
BT_ERR("Can't unregister BNEP socket");
264264

265265
proto_unregister(&bnep_proto);
266-
267-
return 0;
268266
}

0 commit comments

Comments
 (0)