]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: mgmt: Fix some code style and indentation issues
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 16 Mar 2012 15:02:56 +0000 (16:02 +0100)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 15:28:46 +0000 (12:28 -0300)
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Gustavo Padovan <gustavo@padovan.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c

index b570eb7634c9db77f347f7c269b1e8e97e18a722..4ccdb78ad4075a7761d056bd03921eb1301e2619 100644 (file)
@@ -1144,8 +1144,8 @@ static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
        }
 
        if (mgmt_pending_find(MGMT_OP_SET_SSP, hdev)) {
-            err = cmd_status(sk, hdev->id, MGMT_OP_SET_SSP,
-                             MGMT_STATUS_BUSY);
+               err = cmd_status(sk, hdev->id, MGMT_OP_SET_SSP,
+                                MGMT_STATUS_BUSY);
                goto failed;
        }
 
@@ -3052,7 +3052,7 @@ int mgmt_device_disconnected(struct hci_dev *hdev, bdaddr_t *bdaddr,
                         sk);
 
        if (sk)
-         sock_put(sk);
+               sock_put(sk);
 
        mgmt_pending_foreach(MGMT_OP_UNPAIR_DEVICE, hdev, unpair_device_rsp,
                             hdev);
@@ -3464,10 +3464,10 @@ int mgmt_le_enable_complete(struct hci_dev *hdev, u8 enable, u8 status)
 
                if (enable && test_and_clear_bit(HCI_LE_ENABLED,
                                                 &hdev->dev_flags))
-                 err = new_settings(hdev, NULL);
+                       err = new_settings(hdev, NULL);
 
-               mgmt_pending_foreach(MGMT_OP_SET_LE, hdev,
-                                    cmd_status_rsp, &mgmt_err);
+               mgmt_pending_foreach(MGMT_OP_SET_LE, hdev, cmd_status_rsp,
+                                    &mgmt_err);
 
                return err;
        }