Unverified Commit 3f9cdf70 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12848 Bluetooth: ISO: Fix multiple init when debugfs is disabled

parents 3b0aa90e 766201ba
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2112,13 +2112,9 @@ int iso_init(void)

	hci_register_cb(&iso_cb);

	if (IS_ERR_OR_NULL(bt_debugfs))
		return 0;

	if (!iso_debugfs) {
	if (!IS_ERR_OR_NULL(bt_debugfs))
		iso_debugfs = debugfs_create_file("iso", 0444, bt_debugfs,
						  NULL, &iso_debugfs_fops);
	}

	iso_inited = true;