Skip to content

Commit

Permalink
Bluetooth: Remove useless code in hci_connect
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andre Guedes authored and Gustavo Padovan committed May 9, 2012
1 parent 9f0caeb commit b290504
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b290504

Please sign in to comment.