Skip to content

Commit b031661

Browse files
author
Al Viro
committed
bluetooth: kill unused 'module' argument of bt_procfs_init()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 1480535 commit b031661

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎include/net/bluetooth/bluetooth.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ extern void hci_sock_cleanup(void);
319319
extern int bt_sysfs_init(void);
320320
extern void bt_sysfs_cleanup(void);
321321

322-
extern int bt_procfs_init(struct module* module, struct net *net, const char *name,
322+
extern int bt_procfs_init(struct net *net, const char *name,
323323
struct bt_sock_list* sk_list,
324324
int (* seq_show)(struct seq_file *, void *));
325325
extern void bt_procfs_cleanup(struct net *net, const char *name);

‎net/bluetooth/af_bluetooth.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ static const struct file_operations bt_fops = {
634634
.release = seq_release_private
635635
};
636636

637-
int bt_procfs_init(struct module* module, struct net *net, const char *name,
637+
int bt_procfs_init(struct net *net, const char *name,
638638
struct bt_sock_list* sk_list,
639639
int (* seq_show)(struct seq_file *, void *))
640640
{
@@ -656,7 +656,7 @@ void bt_procfs_cleanup(struct net *net, const char *name)
656656
remove_proc_entry(name, net->proc_net);
657657
}
658658
#else
659-
int bt_procfs_init(struct module* module, struct net *net, const char *name,
659+
int bt_procfs_init(struct net *net, const char *name,
660660
struct bt_sock_list* sk_list,
661661
int (* seq_show)(struct seq_file *, void *))
662662
{

‎net/bluetooth/bnep/sock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ int __init bnep_sock_init(void)
234234
goto error;
235235
}
236236

237-
err = bt_procfs_init(THIS_MODULE, &init_net, "bnep", &bnep_sk_list, NULL);
237+
err = bt_procfs_init(&init_net, "bnep", &bnep_sk_list, NULL);
238238
if (err < 0) {
239239
BT_ERR("Failed to create BNEP proc file");
240240
bt_sock_unregister(BTPROTO_BNEP);

‎net/bluetooth/cmtp/sock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ int cmtp_init_sockets(void)
245245
goto error;
246246
}
247247

248-
err = bt_procfs_init(THIS_MODULE, &init_net, "cmtp", &cmtp_sk_list, NULL);
248+
err = bt_procfs_init(&init_net, "cmtp", &cmtp_sk_list, NULL);
249249
if (err < 0) {
250250
BT_ERR("Failed to create CMTP proc file");
251251
bt_sock_unregister(BTPROTO_HIDP);

‎net/bluetooth/hci_sock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ int __init hci_sock_init(void)
11021102
goto error;
11031103
}
11041104

1105-
err = bt_procfs_init(THIS_MODULE, &init_net, "hci", &hci_sk_list, NULL);
1105+
err = bt_procfs_init(&init_net, "hci", &hci_sk_list, NULL);
11061106
if (err < 0) {
11071107
BT_ERR("Failed to create HCI proc file");
11081108
bt_sock_unregister(BTPROTO_HCI);

‎net/bluetooth/hidp/sock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ int __init hidp_init_sockets(void)
284284
goto error;
285285
}
286286

287-
err = bt_procfs_init(THIS_MODULE, &init_net, "hidp", &hidp_sk_list, NULL);
287+
err = bt_procfs_init(&init_net, "hidp", &hidp_sk_list, NULL);
288288
if (err < 0) {
289289
BT_ERR("Failed to create HIDP proc file");
290290
bt_sock_unregister(BTPROTO_HIDP);

‎net/bluetooth/l2cap_sock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ int __init l2cap_init_sockets(void)
12921292
goto error;
12931293
}
12941294

1295-
err = bt_procfs_init(THIS_MODULE, &init_net, "l2cap", &l2cap_sk_list,
1295+
err = bt_procfs_init(&init_net, "l2cap", &l2cap_sk_list,
12961296
NULL);
12971297
if (err < 0) {
12981298
BT_ERR("Failed to create L2CAP proc file");

‎net/bluetooth/rfcomm/sock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ int __init rfcomm_init_sockets(void)
10361036
goto error;
10371037
}
10381038

1039-
err = bt_procfs_init(THIS_MODULE, &init_net, "rfcomm", &rfcomm_sk_list, NULL);
1039+
err = bt_procfs_init(&init_net, "rfcomm", &rfcomm_sk_list, NULL);
10401040
if (err < 0) {
10411041
BT_ERR("Failed to create RFCOMM proc file");
10421042
bt_sock_unregister(BTPROTO_RFCOMM);

‎net/bluetooth/sco.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ int __init sco_init(void)
10831083
goto error;
10841084
}
10851085

1086-
err = bt_procfs_init(THIS_MODULE, &init_net, "sco", &sco_sk_list, NULL);
1086+
err = bt_procfs_init(&init_net, "sco", &sco_sk_list, NULL);
10871087
if (err < 0) {
10881088
BT_ERR("Failed to create SCO proc file");
10891089
bt_sock_unregister(BTPROTO_SCO);

0 commit comments

Comments
 (0)