]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove unnecessary hcon->smp_conn variable
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 27 Jun 2014 11:23:07 +0000 (14:23 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:47 +0000 (17:42 +0200)
commit771f5af33df2f6a434e4f5921b24ccc3127c144f
tree9abb0e5a43f7aaa7b64c1edfb23cb6fafea5b1a9
parent68b0ad6f3b1ca90b22ba39b9bc29d17b6fb2e5f7
Bluetooth: Remove unnecessary hcon->smp_conn variable

The smp_conn member of struct hci_conn was simply a pointer to the
l2cap_conn object. Since we already have hcon->l2cap_data that points to
the same thing there's no need to have this second variable. This patch
removes it and changes the single place that was using it to use
hcon->l2cap_data instead.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/smp.c