aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-02-22 06:21:16 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-23 06:06:58 -0500
commit6bf0e4699d1dd56f7f8c12cf332ebffaf1c5e83e (patch)
tree3faa3e2bf587a71b111f118d24bcf855cfc1ab97 /net/bluetooth/mgmt.c
parent70c1f20b00495fd25b81be14b263d32648a3d629 (diff)
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>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 3f4c50eebbea..9fb44900f7d6 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -952,9 +952,9 @@ static int set_connectable(struct sock *sk, u16 index, void *data, u16 len)
952 if (!!cp->val != test_bit(HCI_CONNECTABLE, &hdev->dev_flags)) 952 if (!!cp->val != test_bit(HCI_CONNECTABLE, &hdev->dev_flags))
953 changed = true; 953 changed = true;
954 954
955 if (cp->val) 955 if (cp->val) {
956 set_bit(HCI_CONNECTABLE, &hdev->dev_flags); 956 set_bit(HCI_CONNECTABLE, &hdev->dev_flags);
957 else { 957 } else {
958 clear_bit(HCI_CONNECTABLE, &hdev->dev_flags); 958 clear_bit(HCI_CONNECTABLE, &hdev->dev_flags);
959 clear_bit(HCI_DISCOVERABLE, &hdev->dev_flags); 959 clear_bit(HCI_DISCOVERABLE, &hdev->dev_flags);
960 } 960 }
@@ -987,9 +987,9 @@ static int set_connectable(struct sock *sk, u16 index, void *data, u16 len)
987 goto failed; 987 goto failed;
988 } 988 }
989 989
990 if (cp->val) 990 if (cp->val) {
991 scan = SCAN_PAGE; 991 scan = SCAN_PAGE;
992 else { 992 } else {
993 scan = 0; 993 scan = 0;
994 994
995 if (test_bit(HCI_ISCAN, &hdev->flags) && 995 if (test_bit(HCI_ISCAN, &hdev->flags) &&