From: Andre Guedes Date: Mon, 23 Jul 2012 21:19:04 +0000 (-0300) Subject: Bluetooth: Remove locking in hci_user_passkey_request_evt X-Git-Tag: v3.7-rc1~70^2~42^2~37^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee72d150ada90d33cc6e222fbdd7f980c16d974d;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Gustavo Padovan --- 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,