diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-04-24 15:11:11 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-09 00:40:42 -0400 |
commit | b29050448a7efcedf5e8bec71c371169389a7a26 (patch) | |
tree | c045723855afb74c96b909894d037f5a81b8df57 /net | |
parent | 9f0caeb1deafa9a894ee03134f6642c3a245b1af (diff) |
Bluetooth: Remove useless code in hci_connect
This patch removes unneeded variable assignments in hci_connect.
'sec_level' is already assigned to BT_SECURITY_LOW in hci_le_connect
and 'pending_sec_level' and 'auth_type' are assigned right after
if statement.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_conn.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 7db3edc28f77..8f352cd1745a 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -535,9 +535,6 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8 | |||
535 | return ERR_PTR(-ENOMEM); | 535 | return ERR_PTR(-ENOMEM); |
536 | 536 | ||
537 | le->dst_type = entry->bdaddr_type; | 537 | le->dst_type = entry->bdaddr_type; |
538 | le->pending_sec_level = sec_level; | ||
539 | le->sec_level = BT_SECURITY_LOW; | ||
540 | le->auth_type = auth_type; | ||
541 | hci_le_connect(le); | 538 | hci_le_connect(le); |
542 | } | 539 | } |
543 | 540 | ||