projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b3b2b
)
Bluetooth: Remove unnecessary assignment in SMP
author
Johan Hedberg
<
[email protected]
>
Mon, 24 Mar 2014 14:59:14 +0000
(16:59 +0200)
committer
Marcel Holtmann
<
[email protected]
>
Mon, 24 Mar 2014 15:43:50 +0000
(08:43 -0700)
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 <
[email protected]
>
Signed-off-by: Marcel Holtmann <
[email protected]
>
net/bluetooth/smp.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/smp.c
b/net/bluetooth/smp.c
index c654c5880912843ae3ce3c970c336f2d444633e8..dfb4e1161c10fbb62b6ac43220949992a5075dfc 100644
(file)
--- a/
net/bluetooth/smp.c
+++ b/
net/bluetooth/smp.c
@@
-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;