diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2013-10-03 17:25:44 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-10-04 02:07:17 -0400 |
commit | f1e5d54743b99cbbea0e0cfb2b3f8053f045b3d7 (patch) | |
tree | c4ea19905e6e26f1c67e226b32e55e0dbdb65ed5 /net/bluetooth/hci_conn.c | |
parent | 4f3e219d95a3c31b916dcd5e2631c4e440736f79 (diff) |
Bluetooth: Rename hci_conn variable in hci_connect_le()
This patch simply rename the hci_conn variable "le" to "conn"
since it is a better name.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 514148b7a66b..5aba520cddfe 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -549,31 +549,31 @@ EXPORT_SYMBOL(hci_get_route); | |||
549 | static struct hci_conn *hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst, | 549 | static struct hci_conn *hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst, |
550 | u8 dst_type, u8 sec_level, u8 auth_type) | 550 | u8 dst_type, u8 sec_level, u8 auth_type) |
551 | { | 551 | { |
552 | struct hci_conn *le; | 552 | struct hci_conn *conn; |
553 | 553 | ||
554 | if (test_bit(HCI_LE_PERIPHERAL, &hdev->flags)) | 554 | if (test_bit(HCI_LE_PERIPHERAL, &hdev->flags)) |
555 | return ERR_PTR(-ENOTSUPP); | 555 | return ERR_PTR(-ENOTSUPP); |
556 | 556 | ||
557 | le = hci_conn_hash_lookup_ba(hdev, LE_LINK, dst); | 557 | conn = hci_conn_hash_lookup_ba(hdev, LE_LINK, dst); |
558 | if (!le) { | 558 | if (!conn) { |
559 | le = hci_conn_hash_lookup_state(hdev, LE_LINK, BT_CONNECT); | 559 | conn = hci_conn_hash_lookup_state(hdev, LE_LINK, BT_CONNECT); |
560 | if (le) | 560 | if (conn) |
561 | return ERR_PTR(-EBUSY); | 561 | return ERR_PTR(-EBUSY); |
562 | 562 | ||
563 | le = hci_conn_add(hdev, LE_LINK, dst); | 563 | conn = hci_conn_add(hdev, LE_LINK, dst); |
564 | if (!le) | 564 | if (!conn) |
565 | return ERR_PTR(-ENOMEM); | 565 | return ERR_PTR(-ENOMEM); |
566 | 566 | ||
567 | le->dst_type = bdaddr_to_le(dst_type); | 567 | conn->dst_type = bdaddr_to_le(dst_type); |
568 | hci_le_create_connection(le); | 568 | hci_le_create_connection(conn); |
569 | } | 569 | } |
570 | 570 | ||
571 | le->pending_sec_level = sec_level; | 571 | conn->pending_sec_level = sec_level; |
572 | le->auth_type = auth_type; | 572 | conn->auth_type = auth_type; |
573 | 573 | ||
574 | hci_conn_hold(le); | 574 | hci_conn_hold(conn); |
575 | 575 | ||
576 | return le; | 576 | return conn; |
577 | } | 577 | } |
578 | 578 | ||
579 | static struct hci_conn *hci_connect_acl(struct hci_dev *hdev, bdaddr_t *dst, | 579 | static struct hci_conn *hci_connect_acl(struct hci_dev *hdev, bdaddr_t *dst, |