Skip to content

Commit

Permalink
Bluetooth: L2CAP: Cleanup l2cap_br_conn_req()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
xpuarli authored and Johan Hedberg committed Oct 21, 2016
1 parent 941104a commit b7b65ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/bluetooth/l2cap_br.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,6 @@ static void l2cap_br_conn_req(struct bt_l2cap_br *l2cap, uint8_t ident,

/* 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;
}
Expand Down

0 comments on commit b7b65ef

Please sign in to comment.