mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
9f0caeb1de
commit
b29050448a
1 changed files with 0 additions and 3 deletions
|
|
@ -535,9 +535,6 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8
|
|||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
le->dst_type = entry->bdaddr_type;
|
||||
le->pending_sec_level = sec_level;
|
||||
le->sec_level = BT_SECURITY_LOW;
|
||||
le->auth_type = auth_type;
|
||||
hci_le_connect(le);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue