summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@openbossa.org>2013-11-07 21:36:10 +0100
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-12-04 14:09:04 +0100
commit3846220b0df414816d00365cec559ff3c8b7c4bf (patch)
tree885feba756eed1a596f0c2d4ec68c67fb71561dc /drivers/bluetooth
parentBluetooth: Remove unneeded check in hci_disconn_complete_evt() (diff)
downloadlinux-3846220b0df414816d00365cec559ff3c8b7c4bf.tar.xz
linux-3846220b0df414816d00365cec559ff3c8b7c4bf.zip
Bluetooth: Refactor hci_disconn_complete_evt
hci_disconn_complete_evt() logic is more complicated than what it should be, making it hard to follow and add new features. So this patch does some code refactoring by handling the error cases in the beginning of the function and by moving the main flow into the first level of function scope. No change is done in the event handling logic itself. Besides organizing this messy code, this patch makes easier to add code for handling LE auto connection (which will be added in a further patch). Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth')
0 files changed, 0 insertions, 0 deletions