Bluetooth: Remove locking in hci_user_passkey_request_evt

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:22 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ee72d150ada90d33cc6e222fbdd7f980c16d974d
Commit:     ee72d150ada90d33cc6e222fbdd7f980c16d974d
Parent:     9e66463127ff7238020c3c4e7f84dfbc23e5c2b5
Author:     Andre Guedes <andre.guedes at openbossa.org>
AuthorDate: Mon Jul 23 18:19:04 2012 -0300
Committer:  Gustavo Padovan <gustavo.padovan at collabora.co.uk>
CommitDate: Mon Aug 6 15:02:58 2012 -0300

    Bluetooth: Remove locking in hci_user_passkey_request_evt
    
    This patch removes hdev locking in hci_user_passkey_request_evt
    since it is not needed. mgmt_user_passkey_request simply calls
    mgmt_event which does not require hdev locking at all.
    
    Signed-off-by: Andre Guedes <andre.guedes at openbossa.org>
    Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
 net/bluetooth/hci_event.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 2d8761b..0386e1e 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -3252,12 +3252,8 @@ static void hci_user_passkey_request_evt(struct hci_dev *hdev,
 
 	BT_DBG("%s", hdev->name);
 
-	hci_dev_lock(hdev);
-
 	if (test_bit(HCI_MGMT, &hdev->dev_flags))
 		mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0);
-
-	hci_dev_unlock(hdev);
 }
 
 static void hci_simple_pair_complete_evt(struct hci_dev *hdev,



More information about the linux-mtd-cvs mailing list