Loading net/bluetooth/l2cap_core.c +5 −6 Original line number Diff line number Diff line Loading @@ -6833,12 +6833,11 @@ int __init l2cap_init(void) if (err < 0) return err; if (bt_debugfs) { if (IS_ERR_OR_NULL(bt_debugfs)) return 0; l2cap_debugfs = debugfs_create_file("l2cap", 0444, bt_debugfs, NULL, &l2cap_debugfs_fops); if (!l2cap_debugfs) BT_ERR("Failed to create L2CAP debug file"); } return 0; } Loading net/bluetooth/rfcomm/core.c +7 −7 Original line number Diff line number Diff line Loading @@ -2154,13 +2154,6 @@ static int __init rfcomm_init(void) goto unregister; } if (bt_debugfs) { rfcomm_dlc_debugfs = debugfs_create_file("rfcomm_dlc", 0444, bt_debugfs, NULL, &rfcomm_dlc_debugfs_fops); if (!rfcomm_dlc_debugfs) BT_ERR("Failed to create RFCOMM debug file"); } err = rfcomm_init_ttys(); if (err < 0) goto stop; Loading @@ -2171,6 +2164,13 @@ static int __init rfcomm_init(void) BT_INFO("RFCOMM ver %s", VERSION); if (IS_ERR_OR_NULL(bt_debugfs)) return 0; rfcomm_dlc_debugfs = debugfs_create_file("rfcomm_dlc", 0444, bt_debugfs, NULL, &rfcomm_dlc_debugfs_fops); return 0; cleanup: Loading net/bluetooth/rfcomm/sock.c +7 −7 Original line number Diff line number Diff line Loading @@ -1051,15 +1051,15 @@ int __init rfcomm_init_sockets(void) goto error; } if (bt_debugfs) { rfcomm_sock_debugfs = debugfs_create_file("rfcomm", 0444, bt_debugfs, NULL, &rfcomm_sock_debugfs_fops); if (!rfcomm_sock_debugfs) BT_ERR("Failed to create RFCOMM debug file"); } BT_INFO("RFCOMM socket layer initialized"); if (IS_ERR_OR_NULL(bt_debugfs)) return 0; rfcomm_sock_debugfs = debugfs_create_file("rfcomm", 0444, bt_debugfs, NULL, &rfcomm_sock_debugfs_fops); return 0; error: Loading net/bluetooth/sco.c +6 −7 Original line number Diff line number Diff line Loading @@ -1177,14 +1177,13 @@ int __init sco_init(void) goto error; } if (bt_debugfs) { BT_INFO("SCO socket layer initialized"); if (IS_ERR_OR_NULL(bt_debugfs)) return 0; sco_debugfs = debugfs_create_file("sco", 0444, bt_debugfs, NULL, &sco_debugfs_fops); if (!sco_debugfs) BT_ERR("Failed to create SCO debug file"); } BT_INFO("SCO socket layer initialized"); return 0; Loading Loading
net/bluetooth/l2cap_core.c +5 −6 Original line number Diff line number Diff line Loading @@ -6833,12 +6833,11 @@ int __init l2cap_init(void) if (err < 0) return err; if (bt_debugfs) { if (IS_ERR_OR_NULL(bt_debugfs)) return 0; l2cap_debugfs = debugfs_create_file("l2cap", 0444, bt_debugfs, NULL, &l2cap_debugfs_fops); if (!l2cap_debugfs) BT_ERR("Failed to create L2CAP debug file"); } return 0; } Loading
net/bluetooth/rfcomm/core.c +7 −7 Original line number Diff line number Diff line Loading @@ -2154,13 +2154,6 @@ static int __init rfcomm_init(void) goto unregister; } if (bt_debugfs) { rfcomm_dlc_debugfs = debugfs_create_file("rfcomm_dlc", 0444, bt_debugfs, NULL, &rfcomm_dlc_debugfs_fops); if (!rfcomm_dlc_debugfs) BT_ERR("Failed to create RFCOMM debug file"); } err = rfcomm_init_ttys(); if (err < 0) goto stop; Loading @@ -2171,6 +2164,13 @@ static int __init rfcomm_init(void) BT_INFO("RFCOMM ver %s", VERSION); if (IS_ERR_OR_NULL(bt_debugfs)) return 0; rfcomm_dlc_debugfs = debugfs_create_file("rfcomm_dlc", 0444, bt_debugfs, NULL, &rfcomm_dlc_debugfs_fops); return 0; cleanup: Loading
net/bluetooth/rfcomm/sock.c +7 −7 Original line number Diff line number Diff line Loading @@ -1051,15 +1051,15 @@ int __init rfcomm_init_sockets(void) goto error; } if (bt_debugfs) { rfcomm_sock_debugfs = debugfs_create_file("rfcomm", 0444, bt_debugfs, NULL, &rfcomm_sock_debugfs_fops); if (!rfcomm_sock_debugfs) BT_ERR("Failed to create RFCOMM debug file"); } BT_INFO("RFCOMM socket layer initialized"); if (IS_ERR_OR_NULL(bt_debugfs)) return 0; rfcomm_sock_debugfs = debugfs_create_file("rfcomm", 0444, bt_debugfs, NULL, &rfcomm_sock_debugfs_fops); return 0; error: Loading
net/bluetooth/sco.c +6 −7 Original line number Diff line number Diff line Loading @@ -1177,14 +1177,13 @@ int __init sco_init(void) goto error; } if (bt_debugfs) { BT_INFO("SCO socket layer initialized"); if (IS_ERR_OR_NULL(bt_debugfs)) return 0; sco_debugfs = debugfs_create_file("sco", 0444, bt_debugfs, NULL, &sco_debugfs_fops); if (!sco_debugfs) BT_ERR("Failed to create SCO debug file"); } BT_INFO("SCO socket layer initialized"); return 0; Loading