From: Andre Guedes Date: Thu, 7 Nov 2013 20:36:09 +0000 (-0300) Subject: Bluetooth: Remove unneeded check in hci_disconn_complete_evt() X-Git-Tag: v3.14-rc1~94^2~482^2^2~42^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abf54a506d06e0b3ba2c408040e647791af37937;p=pandora-kernel.git Bluetooth: Remove unneeded check in hci_disconn_complete_evt() According to b644ba336 (patch that introduced HCI_CONN_MGMT_CONNECTED flag), the HCI_CONN_MGMT_CONNECTED flag tracks when mgmt has been notified about the connection. That being said, there is no point in calling mgmt_disconnect_failed() conditionally based on this flag. mgmt_disconnect_failed() removes pending MGMT_OP_DISCONNECT commands, it doesn't matter if that connection was notified or not. Moreover, if the Disconnection Complete event has status then we have nothing else to do but call mgmt_disconnect_failed() and return. Signed-off-by: Andre Guedes Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed