summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-18 03:43:00 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-18 14:37:01 +0300
commit06ae3314e0f67a222944155904a792399038f8be (patch)
tree786c2fc6d7145b785c30c439a2cc44a13b452d77 /net/bluetooth/smp.c
parente71f41bc7f73ec7f2cb678b51ace47eb05dc6af1 (diff)
downloadop-kernel-dev-06ae3314e0f67a222944155904a792399038f8be.zip
op-kernel-dev-06ae3314e0f67a222944155904a792399038f8be.tar.gz
Bluetooth: Use hcon directly instead of conn->hcon where possible
When the HCI connection hcon is already dereferenced, then use hcon directly instead of conn->hcon. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r--net/bluetooth/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index fc200e0..85a2796c 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -864,7 +864,7 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb)
return -EILSEQ;
}
- if (!test_bit(HCI_LE_ENABLED, &conn->hcon->hdev->dev_flags)) {
+ if (!test_bit(HCI_LE_ENABLED, &hcon->hdev->dev_flags)) {
err = -ENOTSUPP;
reason = SMP_PAIRING_NOTSUPP;
goto done;
OpenPOWER on IntegriCloud