Bluetooth: Fix coding style issues in mgmt code
In this case we need to use braces in both branches.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 3f4c50e..9fb4490 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -952,9 +952,9 @@
if (!!cp->val != test_bit(HCI_CONNECTABLE, &hdev->dev_flags))
changed = true;
- if (cp->val)
+ if (cp->val) {
set_bit(HCI_CONNECTABLE, &hdev->dev_flags);
- else {
+ } else {
clear_bit(HCI_CONNECTABLE, &hdev->dev_flags);
clear_bit(HCI_DISCOVERABLE, &hdev->dev_flags);
}
@@ -987,9 +987,9 @@
goto failed;
}
- if (cp->val)
+ if (cp->val) {
scan = SCAN_PAGE;
- else {
+ } else {
scan = 0;
if (test_bit(HCI_ISCAN, &hdev->flags) &&