From: Andre Guedes Date: Wed, 30 Oct 2013 22:01:42 +0000 (-0300) Subject: Bluetooth: Remove link type check in hci_disconn_complete_evt() X-Git-Tag: v3.14-rc1~94^2~3^2^2~67^2~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ebbd5357531694b9243b176674ae27edf5bd8e1;p=profile%2Fcommon%2Fkernel-common.git Bluetooth: Remove link type check in hci_disconn_complete_evt() We can safely remove the link type check from hci_disconn_complete_ evt() since this check in not required for mgmt_disconnect_failed() and mgmt_device_disconnected() does it internally. Signed-off-by: Andre Guedes Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 4d0f401..142aa61 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -1792,8 +1792,7 @@ static void hci_disconn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) if (ev->status == 0) conn->state = BT_CLOSED; - if (test_and_clear_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags) && - (conn->type == ACL_LINK || conn->type == LE_LINK)) { + if (test_and_clear_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { if (ev->status) { mgmt_disconnect_failed(hdev, &conn->dst, conn->type, conn->dst_type, ev->status);