Skip to content

Commit 4b5dd69

Browse files
author
Gustavo F. Padovan
committed
Bluetooth: Remove local_bh_disable() from hci_sock.c
Everything is in process context now, we do not need such a call. Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo F. Padovan <[email protected]>
1 parent ee65d19 commit 4b5dd69

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/bluetooth/hci_sock.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@ static int hci_sock_dev_event(struct notifier_block *this, unsigned long event,
767767
/* Detach sockets from device */
768768
read_lock(&hci_sk_list.lock);
769769
sk_for_each(sk, node, &hci_sk_list.head) {
770-
local_bh_disable();
771770
bh_lock_sock_nested(sk);
772771
if (hci_pi(sk)->hdev == hdev) {
773772
hci_pi(sk)->hdev = NULL;
@@ -778,7 +777,6 @@ static int hci_sock_dev_event(struct notifier_block *this, unsigned long event,
778777
hci_dev_put(hdev);
779778
}
780779
bh_unlock_sock(sk);
781-
local_bh_enable();
782780
}
783781
read_unlock(&hci_sk_list.lock);
784782
}

0 commit comments

Comments
 (0)