Bluetooth: Refactor hci_cc_le_set_scan_enable
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 30 Apr 2013 18:29:36 +0000 (15:29 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 22 Jun 2013 23:23:51 +0000 (00:23 +0100)
commit3fd319b830247a3fe5f489e622ab404b618e0906
tree8f5c6f78348107f61e0522b8d92729979335052d
parent1183fdcad42495073045a2d9755e0a6ac2fa874e
Bluetooth: Refactor hci_cc_le_set_scan_enable

This patch does a trivial refactoring in hci_cc_le_set_scan_enable.
Since start and stop discovery command failures are now handled in
mgmt layer, the status check became empty. So, we can move it to
outside the switch statement.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_event.c