aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-05-20 14:50:41 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-08 15:58:16 -0400
commit37e1c55de7b1edd3fb8fc3411ad0c32a213723d0 (patch)
tree995ee7677d158dde7c5f2462ffb0aaf1ade6ee9b /net/bluetooth
parent75fde9ee1bca0c0c004aadaebdedf17370f93f18 (diff)
Bluetooth: Remove unnecessary use of hci_dev_list_lock
The get_connections function has no need to use hci_dev_list_lock. The code was there probably because of a copy-paste mistake. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index dae382ce7020..fe835b8e493a 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1092,8 +1092,6 @@ static int get_connections(struct sock *sk, u16 index)
1092 1092
1093 put_unaligned_le16(count, &rp->conn_count); 1093 put_unaligned_le16(count, &rp->conn_count);
1094 1094
1095 read_lock(&hci_dev_list_lock);
1096
1097 i = 0; 1095 i = 0;
1098 list_for_each(p, &hdev->conn_hash.list) { 1096 list_for_each(p, &hdev->conn_hash.list) {
1099 struct hci_conn *c = list_entry(p, struct hci_conn, list); 1097 struct hci_conn *c = list_entry(p, struct hci_conn, list);
@@ -1101,8 +1099,6 @@ static int get_connections(struct sock *sk, u16 index)
1101 bacpy(&rp->conn[i++], &c->dst); 1099 bacpy(&rp->conn[i++], &c->dst);
1102 } 1100 }
1103 1101
1104 read_unlock(&hci_dev_list_lock);
1105
1106 err = cmd_complete(sk, index, MGMT_OP_GET_CONNECTIONS, rp, rp_len); 1102 err = cmd_complete(sk, index, MGMT_OP_GET_CONNECTIONS, rp, rp_len);
1107 1103
1108unlock: 1104unlock: