Skip to content

Commit

Permalink
Bluetooth: Remove unnecessary assignment in SMP
Browse files Browse the repository at this point in the history
The smp variable in smp_conn_security is not used anywhere before the
smp = smp_chan_create() call in the smp_conn_security function so it
makes no sense to assign any other value to it before that.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Johan Hedberg authored and Marcel Holtmann committed Mar 24, 2014
1 parent 61b3b2b commit 8396215
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/bluetooth/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,6 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)
if (!conn)
return 1;

smp = conn->smp_chan;

if (!test_bit(HCI_LE_ENABLED, &hcon->hdev->dev_flags))
return 1;

Expand Down

0 comments on commit 8396215

Please sign in to comment.