summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-06-17 12:58:41 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-18 17:07:55 -0200
commitb9cc553f12d14b692d0fcb607d28db783da68139 (patch)
treef1218f45f6389b1aa970ec34526d587ad2d58c68 /net/bluetooth/hci_conn.c
parentdb323f2fff0ded058f033df6235e8c2be4146bfd (diff)
downloadlinux-b9cc553f12d14b692d0fcb607d28db783da68139.tar.gz
linux-b9cc553f12d14b692d0fcb607d28db783da68139.tar.bz2
linux-b9cc553f12d14b692d0fcb607d28db783da68139.zip
Bluetooth: hci_conn_auto_accept() doesn't need locking
It doesn't really touch any sensitive information about hdev. So no need to lock here. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 7d88a6142092..e6d8a220b5d9 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -362,12 +362,8 @@ static void hci_conn_auto_accept(unsigned long arg)
struct hci_conn *conn = (void *) arg;
struct hci_dev *hdev = conn->hdev;
- hci_dev_lock(hdev);
-
hci_send_cmd(hdev, HCI_OP_USER_CONFIRM_REPLY, sizeof(conn->dst),
&conn->dst);
-
- hci_dev_unlock(hdev);
}
struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst)