summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorArkadiusz Lichwa <arkadiusz.lichwa@tieto.com>2016-10-06 14:41:58 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2016-10-21 07:47:31 +0300
commitb7b65ef4d0fa17652b183e415ffaac3e8e696051 (patch)
treefa4bccf29618d629b45908c32a3abc911c433949 /net
parent941104a66f09e0054164055e1a7c8f638ab97dd9 (diff)
Bluetooth: L2CAP: Cleanup l2cap_br_conn_req()
Removes the code responsible for reset channel object internals. These internals will be reset automatically on chan 'destroy' ops as a result of disconnection that taking place in this case. Change-Id: I7bb3aaf225797a7c4b17ed2b578f6825114307c9 Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/l2cap_br.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_br.c b/net/bluetooth/l2cap_br.c
index 099016a91..e99d0e9cd 100644
--- a/net/bluetooth/l2cap_br.c
+++ b/net/bluetooth/l2cap_br.c
@@ -892,8 +892,6 @@ done:
/* Disconnect link when security rules were violated */
if (result == BT_L2CAP_BR_ERR_SEC_BLOCK) {
- l2cap_br_state_set(chan, BT_L2CAP_DISCONNECTED);
- atomic_clear(BR_CHAN(chan)->flags);
bt_conn_disconnect(conn, BT_HCI_ERR_AUTHENTICATION_FAIL);
return;
}