linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Bluetooth: mgmt: Fix some code style and indentation issues
@ 2012-03-16 15:02 Szymon Janc
  2012-03-16 15:02 ` [PATCH 2/2] Bluetooth: mgmt: Don't allow to set invalid value to DeviceID source Szymon Janc
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Szymon Janc @ 2012-03-16 15:02 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: kanak.gupta, Szymon Janc

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
---
 net/bluetooth/mgmt.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 212b8a4..70eee11 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -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;
 	}
 
@@ -3048,7 +3048,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);
@@ -3460,10 +3460,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;
 	}
-- 
on behalf of ST-Ericsson


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-03-16 16:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16 15:02 [PATCH 1/2] Bluetooth: mgmt: Fix some code style and indentation issues Szymon Janc
2012-03-16 15:02 ` [PATCH 2/2] Bluetooth: mgmt: Don't allow to set invalid value to DeviceID source Szymon Janc
2012-03-16 15:06   ` Gustavo Padovan
2012-03-16 16:11     ` Marcel Holtmann
2012-03-16 16:13     ` Johan Hedberg
2012-03-16 16:20       ` Marcel Holtmann
2012-03-16 16:31         ` Johan Hedberg
2012-03-16 16:10   ` Marcel Holtmann
2012-03-16 15:05 ` [PATCH 1/2] Bluetooth: mgmt: Fix some code style and indentation issues Gustavo Padovan
2012-03-16 16:09 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).